Skip to content

Commit

Permalink
Merge pull request #205 from quartiq/rs/tagged-workflow
Browse files Browse the repository at this point in the history
Correcting tagged-release workflow
  • Loading branch information
jordens authored Feb 8, 2022
2 parents e009df8 + 435d602 commit 1edffea
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions .github/workflows/tagged-release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: tagged-release

on:
push:
tags:
- "v*"
workflow_dispatch:
push:
tags:
- "v*"

jobs:
tagged-release:
Expand All @@ -27,23 +28,12 @@ jobs:
command: install
args: cargo-binutils

- name: Build Debug
uses: actions-rs/cargo@v1
with:
command: build

- name: Build Release
uses: actions-rs/cargo@v1
with:
command: build
args: --release

- name: Dump Debug Binary
uses: actions-rs/cargo@v1
with:
command: objcopy
args: -- -O binary booster-debug.bin

- name: Dump Release Binary
uses: actions-rs/cargo@v1
with:
Expand All @@ -53,6 +43,6 @@ jobs:
- name: Generate Release
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
VERSION_TAG: ${{ github.event.ref##*/ }}
VERSION_TAG: ${GITHUB_REF##*/}
run: |
hub release create -a target/thumbv7em/debug/booster -a target/thumbv7em/release/booster -a booster-debug.bin -a booster-release.bin -m "Release ${{env.VERSION_TAG}}"
hub release create -a "target/thumbv7em-none-eabihf/release/booster#booster-release" -a "booster-release.bin" -m "Release ${{env.VERSION_TAG}}" ${{env.VERSION_TAG}}

0 comments on commit 1edffea

Please sign in to comment.