Skip to content

Commit

Permalink
feat: always build latest firmware in a pre-release
Browse files Browse the repository at this point in the history
  • Loading branch information
ClemensElflein committed Nov 7, 2022
1 parent 08839e3 commit b819af3
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,25 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: release_navigator
keep_files: true
pre-release-latest-firmware:
runs-on: ubuntu-latest
if: github.ref_type != 'tag'
needs: firmware
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: actions/download-artifact@v3
with:
name: open-mower-pico-firmware
path: firmware

- name: Create firmware zip
run: zip -r release/firmware.zip firmware

- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: true
files: release/*

0 comments on commit b819af3

Please sign in to comment.