Skip to content

Commit

Permalink
fix: add artifact zip stage
Browse files Browse the repository at this point in the history
  • Loading branch information
4o3F authored Oct 10, 2024
1 parent df7a234 commit 22bd1db
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ jobs:
run: scripts/install.sh
shell: bash

- uses: Swatinem/rust-cache@v2
- name: Build project
run: scripts/build.sh
shell: bash
Expand All @@ -78,15 +79,17 @@ jobs:
uses: actions/download-artifact@v4
with:
path: /home/runner/release-binary
- name: List artifacts
- name: Compress artifacts
run: |
find /home/runner -type f
cd /home/runner/release-binary
for i in */; do zip -r "${i%/}.zip" "$i"; done
ls /home/runner/release-binary
- name: Release
uses: softprops/action-gh-release@v2
with:
prerelease: true
name: Dev build
tag_name: "pre-release"
files: |
~/release-binary/imagetools*/**
/home/runner/release-binary/*.zip

0 comments on commit 22bd1db

Please sign in to comment.