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\framework\x
|
||||||
Remove-Item -Recurse MissionFramework\.git*
|
Remove-Item -Recurse MissionFramework\.git*
|
||||||
|
|
||||||
# - name: Backup artifacts from runner
|
- name: Backup artifacts from runner
|
||||||
# uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
# with:
|
with:
|
||||||
# name: framework-test-snapshot
|
name: framework-test-snapshot
|
||||||
# path: MissionFramework
|
path: MissionFramework
|
||||||
|
|
||||||
- name: Create archive
|
- name: Create archive
|
||||||
run: Compress-Archive MissionFramework framework-test-snapshot.zip
|
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 }}`"}"
|
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
|
- name: Create new testing-release
|
||||||
run: |
|
uses: https://gitea.com/actions/gitea-release-action@v1.1.6
|
||||||
$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
|
|
||||||
with:
|
with:
|
||||||
file: framework-test-snapshot.zip
|
tag_name: 'testing-release'
|
||||||
asset_name: framework-test-snapshot.zip
|
name: 'testing-release'
|
||||||
tag: 'testing-release'
|
prerelease: true
|
||||||
overwrite: true
|
files: |-
|
||||||
|
framework-test-snapshot.zip
|
||||||
|
|||||||
Reference in New Issue
Block a user