Skip to content

Keep one break before instructions #53

Keep one break before instructions

Keep one break before instructions #53

Workflow file for this run

name: test
on:
push:
# pull_request:
jobs:
zenodo_upload:
name: zenodo upload
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
env:
TZ: America/New_York
steps:
- name: Set env vars
run: |
export ZENODO_TOKEN=${{ secrets.ZENODO_TOKEN }}
echo "ZENODO_TOKEN=${ZENODO_TOKEN}" >> $GITHUB_ENV
export GHA_TOKEN=${{ secrets.GHA_TOKEN }}
echo "GHA_TOKEN=${GHA_TOKEN}" >> $GITHUB_ENV
- name: checkout the code
uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: test
auto-update-conda: true
miniconda-version: "latest"
python-version: "3.10"
- name: pip-install dependencies
run: |
python3 -m pip install requests
- name: download artifacts
run: |
set -vxeuo pipefail
#
# Artifacts from https://github.com/nsls2-conda-envs/nsls2-collection/actions/runs/6176876013
#
# https://github.com/nsls2-conda-envs/nsls2-collection/suites/16137131189/artifacts/921432739
bash ${GITHUB_WORKSPACE}/download-artifacts.sh nsls2-collection 921432739 2023-3.0-py310
#
# Artifacts from https://github.com/nsls2-conda-envs/nsls2-collection-tiled/actions/runs/6176873945
#
# https://github.com/nsls2-conda-envs/nsls2-collection-tiled/suites/16137123471/artifacts/921430178
bash ${GITHUB_WORKSPACE}/download-artifacts.sh nsls2-collection-tiled 921430178 2023-3.0-py310-tiled
- name: Upload artifacts to Zenodo
run: |
python3 test-upload.py