Skip to content

Commit 0adf265

Browse files
authored
Zenodo fixes (#281)
* bot token and environment setup * test * trigger workflows * comments * remove extra release trigger
1 parent 8809379 commit 0adf265

File tree

1 file changed

+4
-17
lines changed

1 file changed

+4
-17
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -21,25 +21,12 @@ jobs:
2121
- uses: actions/checkout@v4
2222
with:
2323
repository: tardis-sn/tardis_zenodo
24-
token: ${{ secrets.GITHUB_TOKEN }}
25-
26-
- name: Download Lock File
27-
run: wget -q https://raw.githubusercontent.com/tardis-sn/stardis/master/conda-linux-64.lock
28-
29-
- name: Generate Cache Key
30-
run: |
31-
file_hash=$(cat conda-linux-64.lock | shasum -a 256 | cut -d' ' -f1)
32-
echo "file_hash=$file_hash" >> "${GITHUB_OUTPUT}"
33-
id: cache-environment-key
24+
token: ${{ secrets.BOT_TOKEN }}
3425

35-
- uses: mamba-org/setup-micromamba@v2
26+
- name: Setup environment
27+
uses: tardis-sn/tardis-actions/setup-env@main
3628
with:
37-
environment-file: conda-linux-64.lock
38-
cache-environment-key: ${{ steps.cache-environment-key.outputs.file_hash }}
39-
cache-downloads-key: ${{ steps.cache-environment-key.outputs.file_hash }}
40-
environment-name: tardis
41-
cache-environment: true
42-
cache-downloads: true
29+
os-label: "linux-64"
4330

4431
- name: Dump Secret Key
4532
run: echo "$KEY_SECRET_JSON" > key_secret.json

0 commit comments

Comments
 (0)