-
-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
853f85c
commit 7ab16d6
Showing
2 changed files
with
13 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,15 +16,15 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: normal check out repo | ||
if: inputs.build-type != 'nightly' && inputs.build-type != 'beta' | ||
if: inputs.build-type != 'nightly' && inputs.build-type != 'rc' | ||
uses: actions/checkout@v3 | ||
- name: nightly check out repo | ||
if: inputs.build-type == 'nightly' | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: 'community' | ||
- name: beta check out repo | ||
if: inputs.build-type == 'beta' | ||
- name: rc check out repo | ||
if: inputs.build-type == 'rc' | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: 'release/1.0' | ||
|
@@ -82,19 +82,19 @@ jobs: | |
asset_name: deluge-nightly.zip # name to upload the release as, use $$ to insert date (YYYYMMDD) and 6 letter commit hash | ||
asset_content_type: application/zip # required by GitHub API | ||
max_releases: 30 # optional, if there are more releases than this matching the asset_name, the oldest ones are going to be deleted | ||
- name: Create beta archive | ||
if: inputs.build-type == 'beta' | ||
- name: Create rc archive | ||
if: inputs.build-type == 'rc' | ||
run: | | ||
zip -j ./beta.zip build/Release/deluge*.bin | ||
- name: Deploy beta zip to releases | ||
if: inputs.build-type == 'beta' | ||
zip -j ./rc.zip build/Release/deluge*.bin | ||
- name: Deploy rc zip to releases | ||
if: inputs.build-type == 'rc' | ||
uses: WebFreak001/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # automatically provided by github actions | ||
with: | ||
upload_url: https://uploads.github.com/repos/SynthstromAudible/DelugeFirmware/releases/123368988/assets{?name,label} # find out this value by opening https://api.github.com/repos/<owner>/<repo>/releases in your browser and copy the full "upload_url" value including the {?name,label} part | ||
release_id: 123368988 # same as above (id can just be taken out the upload_url, it's used to find old releases) | ||
asset_path: ./beta.zip # path to archive to upload | ||
asset_name: deluge-beta.zip # name to upload the release as, use $$ to insert date (YYYYMMDD) and 6 letter commit hash | ||
asset_path: ./rc.zip # path to archive to upload | ||
asset_name: deluge-rc.zip # name to upload the release as, use $$ to insert date (YYYYMMDD) and 6 letter commit hash | ||
asset_content_type: application/zip # required by GitHub API | ||
max_releases: 30 # optional, if there are more releases than this matching the asset_name, the oldest ones are going to be deleted |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters