Skip to content

Commit

Permalink
Add artifact upload and download actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ak5k committed Jan 3, 2024
1 parent 7eb312d commit d7e3679
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,12 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: my-artifact
path: ${{ github.workspace }}
path: |
./reaper_*.dll
./reaper_*.exe
./reaper_*.pkg
./reaper_*.dylib
./reaper_*.so
release:
needs: build
Expand All @@ -68,4 +73,21 @@ jobs:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: true
prerelease: false
prerelease: false

- name: Download artifacts
uses: actions/download-artifact@v2
with:
name: my-artifact
path: artifacts

- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./artifacts/*
asset_name: artifact
asset_content_type: application/octet-stream

0 comments on commit d7e3679

Please sign in to comment.