Update create-testing-snapshot.yaml
Some checks failed
Generate testing snapshot / Create testing release (push) Failing after 1s

This commit is contained in:
hizumi
2024-02-15 18:04:15 -06:00
parent 81f4bb4d48
commit d2a557dda1

View File

@@ -28,11 +28,11 @@ jobs:
Remove-Item -Recurse MissionFramework\framework\x
Remove-Item -Recurse MissionFramework\.git*
- name: Backup artifacts from runner
uses: actions/upload-artifact@v3
with:
name: framework-test-snapshot
path: MissionFramework
# - name: Backup artifacts from runner
# uses: actions/upload-artifact@v3
# with:
# name: framework-test-snapshot
# path: MissionFramework
- name: Create archive
run: Compress-Archive MissionFramework framework-test-snapshot.zip
@@ -61,13 +61,13 @@ jobs:
# }
# Invoke-WebRequest -Uri "${{ gitea.api_url }}/repos/${{ gitea.repository }}/tags" -Method Post -Headers $headers -ContentType "application/json" -Body "{`"message`": `"testing-release`", `"tag_name`": `"testing-release`", `"target`": `"${{ gitea.sha }}`"}"
- name: Create new testing-release release
run: |
$headers = @{
"accept" = "application/json"
"Authorization" = "token ${{secrets.RELEASE_TOKEN}}"
}
Invoke-WebRequest -Uri "${{ gitea.api_url }}/repos/${{ gitea.repository }}/releases" -Method Post -Headers $headers -ContentType "application/json" -Body "{`"tag_name`": `"testing-release`", `"tag_target`": `"develop`", `"title`": `"testing-release`", `"prerelease`": true}"
# - name: Create new testing-release release
# run: |
# $headers = @{
# "accept" = "application/json"
# "Authorization" = "token ${{secrets.RELEASE_TOKEN}}"
# }
# Invoke-WebRequest -Uri "${{ gitea.api_url }}/repos/${{ gitea.repository }}/releases" -Method Post -Headers $headers -ContentType "application/json" -Body "{`"tag_name`": `"testing-release`", `"tag_target`": `"develop`", `"name`": `"testing-release`", `"prerelease`": true}"
# - name: Create new testing-release attachment
# run: |
@@ -77,6 +77,13 @@ jobs:
# }
# Invoke-WebRequest -Uri "${{ gitea.api_url }}/repos/${{ gitea.repository }}/tags" -Method Post -Headers $headers -ContentType "application/json" -Body "{`"message`": `"testing-release`", `"tag_name`": `"testing-release`", `"target`": `"${{ gitea.sha }}`"}"
- name: Create testing-release release
uses: aaiezza/create-release@master
with:
release_branch: develop
tag: "testing-release"
- name: Upload testing-release attachment
uses: svenstaro/upload-release-action@v2
with: