Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
RE3CON authored Nov 4, 2023
1 parent 4b00923 commit 30f9520
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand All @@ -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) }}

0 comments on commit 30f9520

Please sign in to comment.