Publish a package from Github - SynoCommunity/spksrc GitHub Wiki
Setup
- Get your API KEY
- Set up GitHub Secrets in GitHub Action workflow
- On GitHub, navigate to the main page of your fork of this repository.
- Under your repository name, click on the "Settings" tab.
- In the left sidebar, click "Secrets".
- On the right bar, click on "New repository secret"
- Type a name for your secret
PUBLISH_API_KEY
in the "Name" input box. - Paste your API KEY as the value for your secret.
- Click Add secret.
Run Build/Publish workflow
Make sure you test your package toughly before proceeding.
https://docs.github.com/en/actions/managing-workflow-runs/manually-running-a-workflow
Web GUI
- Open GitHub.com and navigate to the build action: https://github.com/{YOUR_GITHUB_USERNAME}/spksrc/actions/workflows/build.yml
- Click the
Run Workflow
button. Enter the package name you want to publish - Type "true" in the
Publish to repository
field and clickRun Workflow
- If everything went well, you should see the package build and published to synocommunity.com
- Do final tests and finally Activate your package
- Celebrate! 🥳
If you get a "Startup failure" make sure to enable Settings -> Actions -> Actions permissions -> Allow all actions
github cli)
CLI (gh workflow -R {YOUR_GITHUB_USERNAME}/spksrc run build.yml -f package=nop -f publish=false
- See the build status
gh run -R {YOUR_GITHUB_USERNAME}/spksrc watch && notify-send -i "github" -a "GitHub" "🛠 Build is done! 🎉" "To view the build visit https://synocommunity.com/admin/build"
- See the build status
- If everything went well, you should see the package build and published to synocommunity.com
- Do final tests and finally Activate your package
- Celebrate! 🥳
Optional - make a GitHub release:
- Create a tag with the following format:
packagename-version
git tag -a -s -m lidarr-0.8.0.2042 lidarr-0.8.0.2042
- Push the tag to your fork:
git push --tags origin lidarr-0.8.0.2042
- If everything went well, you should see the package artifacts attached to your GitHub release.
Troubleshooting
Startup failure Error
Fix: goto Settings -> Actions and choose "allow all actions" from the options.