Update create-testing-snapshot.yaml
Some checks failed
Generate testing snapshot / Create testing release (push) Failing after 30s
Some checks failed
Generate testing snapshot / Create testing release (push) Failing after 30s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user