From 44b842ad334b3750d762b850863e60af93a31540 Mon Sep 17 00:00:00 2001 From: hizumi <> Date: Sat, 2 Mar 2024 00:18:05 -0600 Subject: [PATCH] Update on-release.yaml --- .gitea/workflows/on-release.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/on-release.yaml b/.gitea/workflows/on-release.yaml index 4acdbca..f032adb 100644 --- a/.gitea/workflows/on-release.yaml +++ b/.gitea/workflows/on-release.yaml @@ -22,7 +22,7 @@ jobs: "accept" = "application/json" "Authorization" = "token ${{ secrets.RUNNER_ISSUE_TOKEN }}" } - $response = Invoke-RestMethod -Uri "${{ gitea.api_url }}/repos17th-Ranger-Battalion-ORG/MissionsForZGM/issues" -Method Post -Headers $headers -ContentType "application/json" -Body "{`"title`": `"publish-release`"}" + $response = Invoke-RestMethod -Uri "${{ gitea.api_url }}/repos/17th-Ranger-Battalion-ORG/MissionsForZGM/issues" -Method Post -Headers $headers -ContentType "application/json" -Body "{`"title`": `"publish-release`"}" CreateRelease: name: Publish cleaned template @@ -56,9 +56,10 @@ jobs: - name: Create archive run: | + cd release $revision = git rev-parse --short=10 HEAD - cd MissionTemplate $tag = git describe --abbrev=0 --tags + cd ..\MissionTemplate Compress-Archive MissionFramework mission-maker-template-v$tag-$revision.zip - name: Add archive to release -- 2.37.3.windows.1