Skip to content

Commit

Permalink
try again using a tag
Browse files Browse the repository at this point in the history
  • Loading branch information
pierre-24 committed Mar 21, 2024
1 parent a0c4de7 commit d979187
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/publish-library.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,21 @@ jobs:
run: |
cb_fetch_data library/DATA_SOURCES.yml -o library.h5
- name: Upload library to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: library.h5
asset_name: latest_library.h5
tag: latest
overwrite: true
body: "pre-release library"
- name: Release tag version
if: startsWith(github.ref, 'refs/tags/v')
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: library.h5
asset_name: latest_library.h5
tag: ${{ github.ref }}
overwrite: true
body: "Latest library"
body: "Stable release"

0 comments on commit d979187

Please sign in to comment.