Merge branch 'develop' of https://gitea.iceberg-gaming.com/hizumi/MissionTemplate into develop
All checks were successful
Generate testing snapshot / Create testing release (push) Successful in 33s

This commit is contained in:
2024-02-15 15:13:22 -08:00

View File

@@ -13,6 +13,7 @@ jobs:
echo "repository: ${{ gitea.repository }}" echo "repository: ${{ gitea.repository }}"
echo "ref: ${{ gitea.ref }}" echo "ref: ${{ gitea.ref }}"
echo "ref_name: ${{ gitea.ref_name }}" echo "ref_name: ${{ gitea.ref_name }}"
echo "sha: ${{ gitea.sha }}"
echo "api_url: ${{ gitea.api_url }}" echo "api_url: ${{ gitea.api_url }}"
echo "workflow: ${{ gitea.workflow }}" echo "workflow: ${{ gitea.workflow }}"
@@ -52,6 +53,14 @@ 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
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 - name: Create new testing-release
uses: https://gitea.com/actions/gitea-release-action@v1.1.6 uses: https://gitea.com/actions/gitea-release-action@v1.1.6
with: with: