Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
avi committed Dec 17, 2023
1 parent 97d30e0 commit e7e21b7
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/make_binaries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,29 @@ jobs:
- name: Copy binaries to /firmware
run: bash copy_firmware.sh

- name: Upload binaries for use in release step if needed
uses: actions/upload-artifact@v3
with:
name: firmware
path: firmware/*


deploy_release:
if: github.ref == 'refs/heads/main'
# if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
needs: build
steps:
uses: actions/checkout@v3

- name: Download binaries
uses: actions/download-artifact@v3
with:
name: firmware

- name: Create release and upload binary
run: |
gh release create v0.0.${{github.run_number}} firmware/*
# gh release create v0.0.${{github.run_number}} firmware/*
ls firmware
env:
GITHUB_TOKEN: ${{ github.TOKEN }}
shell: bash

0 comments on commit e7e21b7

Please sign in to comment.