adjust build workflow #21
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Zenodo | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- fix-zenodo-workflow | |
concurrency: zenodo | |
jobs: | |
zenodo: | |
name: Zenodo | |
runs-on: ubuntu-22.04 | |
steps: | |
################################################### | |
# | |
# Prepare | |
# | |
################################################### | |
- name: (PREPARE) Checkout Repository | |
uses: actions/checkout@v3 | |
with: | |
lfs: true | |
fetch-depth: 0 | |
- name: (PREPARE) Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.15.0 | |
cache: yarn | |
- name: (PREPARE) Install Node Dependencies | |
run: rm -rf node_modules && yarn --immutable | |
- name: (PREPARE) Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.10.13 | |
- name: (PREPARE) Install Python dependencies | |
run: pip install -r cmds/zenodo/requirements.txt | |
################################################### | |
# | |
# Zenodo | |
# | |
################################################### | |
- name: (ZENODO) Download files | |
run: | | |
gh release download latest --dir /tmp/opentosca-vintner-zenodo-files | |
gh release download latest --dir /tmp/opentosca-vintner-zenodo-files --archive=zip | |
gh release download latest --dir /tmp/opentosca-vintner-zenodo-files --archive=tar.gz | |
cd /tmp/opentosca-vintner-zenodo-files | |
mv opentosca-vintner-latest.zip source.zip | |
mv opentosca-vintner-latest.tar.gz source.tar.gz | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: (ZENODO) Create new Zenodo version | |
run: yarn release:zenodo | |
env: | |
ZENODO_ACCESS_TOKEN: ${{ secrets.ZENODO_ACCESS_TOKEN }} | |
ZENODO_ORIGINAL_ID: ${{ secrets.ZENODO_ORIGINAL_ID }} | |
VINTNER_VERSION: ${{ github.sha }} |