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

This commit is contained in:
hizumi
2024-02-15 17:43:54 -06:00
parent 293a050027
commit 3194409192

View File

@@ -53,19 +53,34 @@ jobs:
}
Invoke-WebRequest -Uri "${{ gitea.api_url }}/repos/${{ gitea.repository }}/tags/testing-release" -Method Delete -Headers $headers
- name: Create new testing-release tag
# - name: Create new testing-release tag
# run: |
# $headers = @{
# "accept" = "application/json"
# "Authorization" = "token ${{secrets.RELEASE_TOKEN}}"
# }
# 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 }}/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 }}/releases/new" -Method Post -Headers $headers -ContentType "application/json" -Body "{`"tag_name`": `"testing-release`", `"tag_target`": `"develop`", `"title`": `"testing-release`", `"prerelease`": `"on"}"
- name: Create new testing-release
uses: https://gitea.com/actions/gitea-release-action@v1.1.6
# - name: Create new testing-release attachment
# run: |
# $headers = @{
# "accept" = "application/json"
# "Authorization" = "token ${{secrets.RELEASE_TOKEN}}"
# }
# 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: Upload testing-release attachment
uses: svenstaro/upload-release-action@v2
with:
tag_name: 'testing-release'
name: 'testing-release'
prerelease: true
files: |-
framework-test-snapshot.zip
file: framework-test-snapshot.zip
asset_name: framework-test-snapshot.zip
tag: 'testing-release'
overwrite: true