diff --git a/.github/workflows/make_binaries.yaml b/.github/workflows/make_binaries.yaml index 5942c6b..4f2eb42 100644 --- a/.github/workflows/make_binaries.yaml +++ b/.github/workflows/make_binaries.yaml @@ -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