Update create-testing-snapshot.yaml
All checks were successful
Generate testing snapshot / Create testing release (push) Successful in 30s
All checks were successful
Generate testing snapshot / Create testing release (push) Successful in 30s
This commit is contained in:
@@ -28,11 +28,11 @@ jobs:
|
||||
Remove-Item -Recurse MissionFramework\framework\x
|
||||
Remove-Item -Recurse MissionFramework\.git*
|
||||
|
||||
# - name: Backup artifacts from runner
|
||||
# uses: actions/upload-artifact@v3
|
||||
# with:
|
||||
# name: framework-test-snapshot
|
||||
# path: MissionFramework
|
||||
- name: Backup artifacts from runner
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: framework-test-snapshot
|
||||
path: MissionFramework
|
||||
|
||||
- name: Create archive
|
||||
run: Compress-Archive MissionFramework framework-test-snapshot.zip
|
||||
@@ -61,26 +61,11 @@ 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 }}`"}"
|
||||
|
||||
- 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 }}/releases" -Method Post -Headers $headers -ContentType "application/json" -Body "{`"body`": `"testing-release`", `"name`": `"testing-release`", `"prerelease`": `"on`", `"tag_name`": `"testing_release`", `"target_commitish`": `"${{ gitea.sha }}`"}"
|
||||
|
||||
# - 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
|
||||
- name: Create new testing-release
|
||||
uses: https://gitea.com/actions/gitea-release-action@v1.1.6
|
||||
with:
|
||||
file: framework-test-snapshot.zip
|
||||
asset_name: framework-test-snapshot.zip
|
||||
tag: 'testing-release'
|
||||
overwrite: true
|
||||
tag_name: 'testing-release'
|
||||
name: 'testing-release'
|
||||
prerelease: true
|
||||
files: |-
|
||||
framework-test-snapshot.zip
|
||||
|
||||
Reference in New Issue
Block a user