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
|
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: |
|
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 }}/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
|
# - name: Create new testing-release attachment
|
||||||
uses: https://gitea.com/actions/gitea-release-action@v1.1.6
|
# 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:
|
with:
|
||||||
tag_name: 'testing-release'
|
file: framework-test-snapshot.zip
|
||||||
name: 'testing-release'
|
asset_name: framework-test-snapshot.zip
|
||||||
prerelease: true
|
tag: 'testing-release'
|
||||||
files: |-
|
overwrite: true
|
||||||
framework-test-snapshot.zip
|
|
||||||
|
|||||||
Reference in New Issue
Block a user