From 30f9520d6e16092dbf184260ab0ae868638bcf67 Mon Sep 17 00:00:00 2001 From: Chris <35396009+RE3CON@users.noreply.github.com> Date: Sat, 4 Nov 2023 03:56:11 +0100 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dad06af9..d0a8d37e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,13 +1,10 @@ name: 'release' on: - create: + push: branches: [ "release" ] pull_request: branches: [ "release" ] -# tags: -# - "v[0-9]+.[0-9]+.[0-9]+" - - + release: types: - published @@ -17,14 +14,16 @@ on: jobs: build: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest steps: - name: arm-none-eabi-gcc uses: carlosperate/arm-none-eabi-gcc-action@v1 with: - release: '10.3-2021.10' + # release: 'latest' + release: '11.3.Rel1' + # release: '11.2-2022.02' - name: Install Python dependencies run: python3 -m pip install --upgrade pip crcmod @@ -48,21 +47,23 @@ jobs: - name: Get the date id: date - run: echo "::set-output name=date::$(date +'%Y-%m-%d')" + # run: echo "::set-output name=date::$(date +'%A %d.%m.%Y %H:%M - %Z')" #>> $GITHUB_OUTPUT + # run: echo "::set-output name=date::$(date +'%Y-%m-%d')" + run: echo "date=$(date +'%A %d.%m.%Y %H:%M - %Z')" >> $GITHUB_OUTPUT - name: 'Add unpacked FW to release' uses: svenstaro/upload-release-action@v2 with: file: firmware.bin - asset_name: ${{ format('firmware.unpacked_{0}.bin', github.run_number) }} + asset_name: ${{ format('firmware_raw_0.{0}.bin', github.run_number) }} tag: ${{ format('release-{0}', github.run_number) }} - release_name: ${{ format('Release {0}, {1}', github.run_number, steps.date.outputs.date) }} + release_name: ${{ format('Build 0.{0}, {1}', github.run_number, steps.date.outputs.date) }} - name: 'Add packed FW to release' uses: svenstaro/upload-release-action@v2 with: file: firmware_packed${{ github.event.release.tag_name }}.bin - asset_name: ${{ format('firmware_packed_v{0}.bin', github.run_number) }} + asset_name: ${{ format('firmware_packed_0.{0}.bin', github.run_number) }} tag: ${{ format('release-{0}', github.run_number) }} - release_name: ${{ format('Release {0}, {1}', github.run_number, steps.date.outputs.date) }} -#created_at + release_name: ${{ format('Build 0.{0}, {1}', github.run_number, steps.date.outputs.date) }} +