From 7ab16d6315cb23d06479e4721b092ae1d277c586 Mon Sep 17 00:00:00 2001 From: Paul Freund Date: Mon, 27 Nov 2023 16:12:44 +0100 Subject: [PATCH] Update build toolchain to RC --- .github/workflows/build.yml | 20 +++++++++---------- .../{beta-build.yml => rc-build.yml} | 6 +++--- 2 files changed, 13 insertions(+), 13 deletions(-) rename .github/workflows/{beta-build.yml => rc-build.yml} (83%) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 788f8d4726..62c5702b52 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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/deploy-nightly@v2.0.0 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///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 diff --git a/.github/workflows/beta-build.yml b/.github/workflows/rc-build.yml similarity index 83% rename from .github/workflows/beta-build.yml rename to .github/workflows/rc-build.yml index c847dbcdb9..c3d9ea9cc3 100644 --- a/.github/workflows/beta-build.yml +++ b/.github/workflows/rc-build.yml @@ -1,4 +1,4 @@ -name: Beta Build +name: RC Build on: workflow_dispatch: # allows manual triggering @@ -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'