Skip to content

Commit

Permalink
Create zenodo2.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
eeholmes authored Mar 13, 2024
1 parent ac56f90 commit 5a8bdd3
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/zenodo2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Zenodo Release

on:
release:
types: [published]

jobs:
deploy:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v3
- name: download archive to runner
env:
tarball: ${{ github.event.release.tarball_url }}
zipball: ${{ github.event.release.zipball_url }}
run: |
name=$(basename ${zipball}).zip
curl -L $zipball > $name
echo "archive=${name}" >> $GITHUB_ENV
- name: Run Zenodo Deploy
uses: nmfs-opensci/zenodo-release@main
with:
token: ${{ secrets.ZENODO_TOKEN }}
version: ${{ github.event.release.tag_name }}
html_url: ${{ github.event.release.html_url }}
zenodo_json: .zenodo.json
archive: ${{ env.archive }}
doi: 10.5281/zenodo.10719849

0 comments on commit 5a8bdd3

Please sign in to comment.