Browse Source

try to fix Zenodo upload

Falko Schindler 7 tháng trước cách đây
mục cha
commit
2549471ff0
2 tập tin đã thay đổi với 22 bổ sung11 xóa
  1. 22 0
      .github/workflows/citation.yml
  2. 0 11
      .github/workflows/publish.yml

+ 22 - 0
.github/workflows/citation.yml

@@ -0,0 +1,22 @@
+name: Release on Zenodo
+
+on:
+  release:
+    types: [published]
+
+jobs:
+  upload-to-zenodo:
+    runs-on: ubuntu-latest
+    name: A job to update metadata and push a release to Zenodo
+
+    steps:
+      - name: Upload to Zenodo
+        id: release
+        uses: megasanjay/upload-to-zenodo@v2.0.1
+        with:
+          github_token: ${{ secrets.GITHUB_TOKEN }}
+          zenodo_token: ${{ secrets.ZENODO_TOKEN }}
+          zenodo_deposition_id: 13623775
+          zenodo_publish: true
+          commit_message: "Update CITATION.cff"
+          citation_cff: true

+ 0 - 11
.github/workflows/publish.yml

@@ -132,17 +132,6 @@ jobs:
           git commit -m "Update pyproject.toml"
           git push origin HEAD:main
 
-      - name: Upload to Zenodo
-        id: release
-        uses: megasanjay/upload-to-zenodo@v2.0.1
-        with:
-          github_token: ${{ secrets.GITHUB_TOKEN }}
-          zenodo_token: ${{ secrets.ZENODO_TOKEN }}
-          zenodo_deposition_id: 13623775
-          zenodo_publish: true
-          commit_message: "Update CITATION.cff"
-          citation_cff: true
-
   verify:
     needs: docker
     runs-on: ubuntu-latest