Skip to content

Commit

Permalink
Add workflow for Zenodo DOI.
Browse files Browse the repository at this point in the history
  • Loading branch information
isazi committed May 14, 2024
1 parent ac1bd21 commit 82fe9f2
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/zenodo-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Zenodo release

on:
release:
types: [published]

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Download archive to runner
env:
tarball: ${{ github.event.release.tarball_url }}
run: |
name=$(basename ${tarball})
curl -L $tarball > $name
echo "archive=${name}" >> $GITHUB_ENV
- name: Run Zenodo Deploy
uses: rseng/zenodo-release@main
with:
token: ${{ secrets.ZENODO_TOKEN }}
version: ${{ github.event.release.tag_name }}
zenodo_json: .zenodo.json
archive: ${{ env.archive }}
# TODO: add doi after first released version
#doi: ''

0 comments on commit 82fe9f2

Please sign in to comment.