eexiv/.github/workflows/zenodo.yml

28 lines
624 B
YAML
Raw Permalink Normal View History

2024-02-15 14:09:34 -08:00
name: Upload to Zenodo
2024-02-15 14:09:01 -08:00
on:
workflow_dispatch:
inputs:
name:
description: 'Zenodo File Upload Name'
required: true
type: string
path:
description: 'Relative file path from scripts directory'
required: true
type: string
jobs:
upload:
runs-on: ubuntu-latest
steps:
2024-02-15 14:19:29 -08:00
- name: Checkout
uses: actions/checkout@v3
2024-02-15 14:09:01 -08:00
- name: Run Zenodo uploader
2024-02-15 14:17:03 -08:00
working-directory: scripts
2024-02-15 14:11:49 -08:00
env:
2024-02-15 14:13:02 -08:00
ZENODO: ${{ secrets.ZENODO }}
run: |
npm install
bash run.sh ${{ inputs.name }} ${{ inputs.path }}