Fix Zenodo workflow: replace deprecated kykrueger action with zenodraft

- Replace broken kykrueger/zenodo-new-version with zenodraft/action@0.13.3
- Use correct concept ID 5040449 (was using version record ID 8329127)
- Add .zenodo.json metadata file for Zenodo uploads
- Update .gitignore to allow .zenodo.json

Change-Id: I459f77a7401e7a6955b496a772b9c848a85eb5f4
diff --git a/.github/workflows/update-zenodo.yml b/.github/workflows/update-zenodo.yml
index 21e0c4c..a2f7b9c 100644
--- a/.github/workflows/update-zenodo.yml
+++ b/.github/workflows/update-zenodo.yml
@@ -4,26 +4,20 @@
   release:
     types: [published]
   workflow_dispatch:
-env:
-  zenodo_deposition_id: 8329127
-  zenodo_server: 'https://zenodo.org'
+
 jobs:
-  new_version:
-    name: Create new version of zenodo deposition
+  publish_to_zenodo:
+    name: Publish to Zenodo
     runs-on: ubuntu-latest
     steps:
-      - uses: actions/checkout@v3
-      - uses: kykrueger/zenodo-new-version@v1.0.1
+      - uses: actions/checkout@v4
+      
+      - name: Create new Zenodo version
+        uses: zenodraft/action@0.13.3
         with:
-          zenodo_deposition_id: ${{ env.zenodo_deposition_id }}
-          zenodo_server: ${{ env.zenodo_server }}
-          zenodo_token: ${{ secrets.ZENODO_TOKEN }}
-      # Add further actions between the DOI reservation and the publishing process
-      - uses: kykrueger/zenodo-publish@v1
-        with:
-          zenodo_deposition_id: ${{ env.zenodo_deposition_id }}
-          zenodo_server: ${{ env.zenodo_server }}
-          zenodo_token: ${{ secrets.ZENODO_TOKEN }}
-      - uses: EndBug/add-and-commit@v7.1.1
-        with:
-          message: 'published to Zenodo'
+          concept: 5040449
+          metadata: .zenodo.json
+          publish: true
+        env:
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+          ZENODO_ACCESS_TOKEN: ${{ secrets.ZENODO_TOKEN }}
diff --git a/.gitignore b/.gitignore
index 6f8d6c3..d065c75 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,6 +2,7 @@
 !/.gitignore
 !/.github
 !/.gitlab-ci.yml
+!/.zenodo.json
 !/.mvn
 !/.mvn/jvm.config
 target
diff --git a/.zenodo.json b/.zenodo.json
new file mode 100644
index 0000000..78f877c
--- /dev/null
+++ b/.zenodo.json
@@ -0,0 +1,32 @@
+{
+  "title": "KorAP/KorAP-Tokenizer",
+  "description": "DFA tokenizer with character offset output, large abbreviation tables and CMC support.",
+  "license": "Apache-2.0",
+  "upload_type": "software",
+  "access_right": "open",
+  "creators": [
+    {
+      "name": "Kupietz, Marc",
+      "affiliation": "Leibniz-Institut für Deutsche Sprache"
+    },
+    {
+      "name": "Diewald, Nils",
+      "affiliation": "Leibniz-Institut für Deutsche Sprache"
+    }
+  ],
+  "communities": [
+    {
+      "identifier": "natural-language-processing"
+    }
+  ],
+  "keywords": [
+    "tokenizer",
+    "NLP",
+    "natural language processing",
+    "DFA",
+    "German",
+    "English",
+    "French",
+    "KorAP"
+  ]
+}