Skip to content

Commit

Permalink
first workflow draft
Browse files Browse the repository at this point in the history
  • Loading branch information
focus-martin committed Dec 1, 2023
0 parents commit 0569998
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Release
on: [push, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v4
with:
submodules: recursive
token: ${{ secrets.PAT_TOKEN }}

- id: latest
uses: robinraju/release-downloader@v1.8
with:
repository: "binhollc/SupernovaFirmware"
token: ${{ secrets.PAT_TOKEN }}
latest: true

- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: "binho_supernova_firmware_images_v${{ steps.latest.outputs.tag_name }}"
path: ${{github.workspace}}/*

- name: Release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v1
with:
files: |
${{github.workspace}}/*.hex
${{github.workspace}}/*.gfi

0 comments on commit 0569998

Please sign in to comment.