Skip to content

Commit

Permalink
Update build toolchain to RC
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulFreund committed Nov 27, 2023
1 parent 853f85c commit 7ab16d6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Beta Build
name: RC Build

on:
workflow_dispatch: # allows manual triggering
Expand All @@ -12,8 +12,8 @@ on:
- 'release/1.0'

jobs:
beta-build:
rc-build:
uses: ./.github/workflows/build.yml
with:
firmware-retention-days: 30
build-type: 'beta'
build-type: 'rc'

0 comments on commit 7ab16d6

Please sign in to comment.