Skip to content

Commit

Permalink
fix(#69): release upload & permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
jannis-baum committed Jul 14, 2024
1 parent e21cebc commit 0051013
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: vivify-linux
path: build/linux/*
path: build/linux

build-macos:
name: Build MacOS
Expand All @@ -55,7 +55,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: vivify-macos
path: build/macos/*
path: build/macos

release:
name: Release
Expand All @@ -67,13 +67,19 @@ jobs:
uses: actions/download-artifact@v4
with:
name: vivify-linux
path: .
path: ./vivify-linux
- name: download macos artifact
if: startsWith(github.ref, 'refs/tags/v')
uses: actions/download-artifact@v4
with:
name: vivify-macos
path: .
path: ./vivify-macos
- name: fix permissions & archive
if: startsWith(github.ref, 'refs/tags/v')
run: |
chmod +x ./vivify-linux/* ./vivify-macos/*
zip -r vivify-linux.zip vivify-linux
zip -r vivify-macos.zip vivify-macos
- name: release
if: startsWith(github.ref, 'refs/tags/v')
uses: softprops/action-gh-release@v2
Expand Down

0 comments on commit 0051013

Please sign in to comment.