Skip to content

Commit

Permalink
Solve upload-artifact double-zips a zip issue
Browse files Browse the repository at this point in the history
Refer to actions/upload-artifact#39
Using the workaround mentioned there
  • Loading branch information
Preuss Jan-Henrik committed Apr 19, 2024
1 parent ad4e8e8 commit fb52c64
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,17 @@ jobs:
cd rust
cargo build --release
- name: Zip Artifacts
- name: Prepare release Artifacts
run: |
git archive -o artifacts.zip HEAD --add-file=main_document.pdf --add-file=presentation_document.pdf
- name: Unzip into release folder thanks to https://github.com/actions/upload-artifact/issues/39
uses: montudor/action-zip@v1
with:
args: unzip -qq artifacts.zip -d release-artifacts

- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: artifacts1
path: artifacts.zip
name: artifacts
path: release-artifacts/

0 comments on commit fb52c64

Please sign in to comment.