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\framework\x
Remove-Item -Recurse MissionFramework\.git* Remove-Item -Recurse MissionFramework\.git*
- name: Backup artifacts from runner # - name: Backup artifacts from runner
uses: actions/upload-artifact@v3 # uses: actions/upload-artifact@v3
with: # with:
name: framework-test-snapshot # name: framework-test-snapshot
path: MissionFramework # path: MissionFramework
- name: Create archive - name: Create archive
run: Compress-Archive MissionFramework framework-test-snapshot.zip 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 }}`"}" # 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 # - name: Create new testing-release release
run: | # run: |
$headers = @{ # $headers = @{
"accept" = "application/json" # "accept" = "application/json"
"Authorization" = "token ${{secrets.RELEASE_TOKEN}}" # "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}" # 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 # - name: Create new testing-release attachment
# run: | # 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 }}`"}" # 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 - name: Upload testing-release attachment
uses: svenstaro/upload-release-action@v2 uses: svenstaro/upload-release-action@v2
with: with: