Skip to content

Commit 07843cd

Browse files
committed
update workflows
1 parent 9c34547 commit 07843cd

2 files changed

Lines changed: 12 additions & 10 deletions

File tree

.github/workflows/artifact.yaml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@ concurrency:
66

77
on:
88
push:
9-
tags:
10-
- '*'
9+
branches: [ main ]
10+
paths-ignore:
11+
- '.github/*'
12+
- '.gitignore'
13+
- 'Dockerfile'
1114
workflow_dispatch:
1215
branches: [ main ]
1316

@@ -43,9 +46,9 @@ jobs:
4346
ghcr.io/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.tag }}
4447
outputs: type=docker,dest=${{ runner.temp }}/${{ env.TAG_LATEST }}-amd64.tar
4548
provenance: false
46-
push: true
47-
- name: Upload artifact
48-
uses: actions/upload-artifact@v4
49-
with:
50-
name: ${{ env.TAG_LATEST }}-amd64.tar
51-
path: ${{ runner.temp }}/${{ env.TAG_LATEST }}-amd64.tar
49+
push: ${{ github.ref_name != 'main' }} # if tagged
50+
- name: 🌬️ Push it to Zenodo
51+
run: |
52+
curl -H 'Authorization: Bearer ${{ secrets.ZENODO_TOKEN }}' \
53+
--upload-file ${{ runner.temp }}/${{ env.TAG_LATEST }}-amd64.tar \
54+
https://zenodo.org/api/files/${{ secrets.ZENODO_BUCKET }}/${{ env.TAG_LATEST }}-amd64.tar

.github/workflows/compile.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
run: x="${{ github.ref_name }}"; echo "tag=${x/main/latest}" >> $GITHUB_OUTPUT
2929
- name: 🗄️ Make source deposit
3030
run: make sources.zip && ls -l sources.zip && md5sum sources.zip
31-
- name: Update Zenodo files
31+
- name: 🌬️ Update Zenodo files
3232
run: |
3333
curl -H 'Authorization: Bearer ${{ secrets.ZENODO_TOKEN }}' --upload-file sources.zip https://zenodo.org/api/files/${{ secrets.ZENODO_BUCKET }}/sources.zip
3434
curl -H 'Authorization: Bearer ${{ secrets.ZENODO_TOKEN }}' --upload-file readme.txt https://zenodo.org/api/files/${{ secrets.ZENODO_BUCKET }}/readme.txt
@@ -57,7 +57,6 @@ jobs:
5757
removeArtifacts: true
5858
replacesArtifacts: true
5959

60-
6160
deploy:
6261
name: Share
6362
runs-on: ubuntu-22.04

0 commit comments

Comments
 (0)