Merge pull request 'Update on-release.yaml' (#36) from develop into main

Reviewed-on: #36
This commit was merged in pull request #36.
This commit is contained in:
2024-03-02 00:49:54 -06:00

View File

@@ -16,11 +16,12 @@ jobs:
echo "sha: ${{ gitea.sha }}"
echo "api_url: ${{ gitea.api_url }}"
echo "workflow: ${{ gitea.workflow }}"
- name: Publish remote issue
run: |
$headers = @{
"accept" = "application/json"
"Authorization" = "token ${{ secrets.RUNNER_ISSUE_TOKEN }}"
"Authorization" = "token ${{ secrets.RUNNER_ISSUE_TOKEN }}"
}
$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`"}"
@@ -60,7 +61,7 @@ jobs:
$revision = git rev-parse --short=10 HEAD
$tag = git describe --abbrev=0 --tags
cd ..\MissionTemplate
Compress-Archive MissionFramework mission-maker-template-v$tag-$revision.zip
Compress-Archive MissionTemplate mission-maker-template-v$tag-$revision.zip
- name: Add archive to release
uses: https://gitea.com/actions/gitea-release-action@v1.3.0