Update on-release.yaml
All checks were successful
Generate testing snapshot / Create testing release (push) Successful in 30s
All checks were successful
Generate testing snapshot / Create testing release (push) Successful in 30s
This commit is contained in:
@@ -22,7 +22,7 @@ jobs:
|
|||||||
"accept" = "application/json"
|
"accept" = "application/json"
|
||||||
"Authorization" = "token ${{ secrets.RUNNER_ISSUE_TOKEN }}"
|
"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:
|
CreateRelease:
|
||||||
name: Publish cleaned template
|
name: Publish cleaned template
|
||||||
@@ -56,9 +56,10 @@ jobs:
|
|||||||
|
|
||||||
- name: Create archive
|
- name: Create archive
|
||||||
run: |
|
run: |
|
||||||
|
cd release
|
||||||
$revision = git rev-parse --short=10 HEAD
|
$revision = git rev-parse --short=10 HEAD
|
||||||
cd MissionTemplate
|
|
||||||
$tag = git describe --abbrev=0 --tags
|
$tag = git describe --abbrev=0 --tags
|
||||||
|
cd ..\MissionTemplate
|
||||||
Compress-Archive MissionFramework mission-maker-template-v$tag-$revision.zip
|
Compress-Archive MissionFramework mission-maker-template-v$tag-$revision.zip
|
||||||
|
|
||||||
- name: Add archive to release
|
- name: Add archive to release
|
||||||
|
|||||||
Reference in New Issue
Block a user