Skip to content

Commit

Permalink
Add regz and uf2 releases to the github deploy action (#339)
Browse files Browse the repository at this point in the history
* ci: add regz/uf2 release artifact generation to deploy

* ci: remove verbose tar output for boxzer artifact

* ci: removed separate artifact upload step

* fix(ci): find -exec mv resulting in error that is code stopping ci

* fix(ci): incorrect uf2 artifact source path

* ci: renamed boxzer-out to microzig-packaged

* Revert "ci: renamed boxzer-out to microzig-packaged"

This reverts commit cfb0f6f.
  • Loading branch information
EliSauder authored Jan 16, 2025
1 parent 752386c commit abc866e
Showing 1 changed file with 23 additions and 14 deletions.
37 changes: 23 additions & 14 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,28 @@ jobs:
- name: Assemble Packages
run: zig build package -- https://microzig.tech/downloads/microzig

- name: Release RegZ
run: |
zig build release-regz
find zig-out/* -type d -print0 | xargs -0 -I {} sh -c 'mv {} "$(dirname {})"/regz-"$(basename {})"'
- name: Release Uf2
run: |
zig build release-uf2
find zig-out/* -type d -and -not -path "*regz*" -print0 | xargs -0 -I {} sh -c 'mv {} "$(dirname {})"/uf2-"$(basename {})"'
- name: Create Microzig Tarball
run: |
tar -czf boxzer-out.tar.gz -C boxzer-out .
- name: Create regz Tarballs
run: |
find zig-out/regz* -type d -exec sh -c 'tar -czf "{}.tar.gz" -C {} .' \;
- name: Create uf2 Tarballs
run: |
find zig-out/uf2* -type d -exec sh -c 'tar -czf "{}.tar.gz" -C {} .' \;
- name: Create Release Draft
uses: ncipollo/release-action@v1
id: create_release
Expand All @@ -39,17 +61,4 @@ jobs:
artifactErrorsFailBuild: true
draft: true
generateReleaseNotes: true

- name: Create Tarball
run: |
tar -czvf boxzer-out.tar.gz -C boxzer-out .
- name: Upload Artifact to Release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: boxzer-out.tar.gz
asset_name: boxzer-out.tar.gz
asset_content_type: application/gzip
artifacts: boxzer-out.tar.gz,zig-out/regz*.tar.gz,zig-out/uf2*.tar.gz

0 comments on commit abc866e

Please sign in to comment.