Fixed actions again
This commit is contained in:
@@ -5,48 +5,48 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
- build-nightly:
|
build-nightly:
|
||||||
name: Build Nightly Release
|
name: Build Nightly Release
|
||||||
runs-on: Debian-x86
|
runs-on: Debian-x86
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
platform: [linux, windows, mac]
|
platform: [linux, windows, mac]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
lfs: true
|
lfs: true
|
||||||
- name: Build
|
- name: Build
|
||||||
id: build
|
id: build
|
||||||
uses: felix-schindler/build-godot-action@v2.0.0
|
uses: felix-schindler/build-godot-action@v2.0.0
|
||||||
with:
|
with:
|
||||||
name: wrplat
|
name: wrplat
|
||||||
preset: ${{ matrix.platform }}
|
preset: ${{ matrix.platform }}
|
||||||
debugMode: "true"
|
debugMode: "true"
|
||||||
- name: Clean up Release & Update Tag
|
- name: Clean up Release & Update Tag
|
||||||
run: |
|
run: |
|
||||||
# Find and delete the old Gitea Release payload via API
|
# Find and delete the old Gitea Release payload via API
|
||||||
RELEASE_ID=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" ${{ github.api_url }}/repos/${{ github.repository }}/releases/tags/nightly | jq -r '.id')
|
RELEASE_ID=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" ${{ github.api_url }}/repos/${{ github.repository }}/releases/tags/nightly | jq -r '.id')
|
||||||
if [ "$RELEASE_ID" != "null" ] && [ -n "$RELEASE_ID" ]; then
|
if [ "$RELEASE_ID" != "null" ] && [ -n "$RELEASE_ID" ]; then
|
||||||
echo "Deleting old release ID: $RELEASE_ID"
|
echo "Deleting old release ID: $RELEASE_ID"
|
||||||
curl -s -X DELETE -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" ${{ github.api_url }}/repos/${{ github.repository }}/releases/$RELEASE_ID
|
curl -s -X DELETE -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" ${{ github.api_url }}/repos/${{ github.repository }}/releases/$RELEASE_ID
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Force the 'nightly' Git tag to point to this new commit and push it
|
# Force the 'nightly' Git tag to point to this new commit and push it
|
||||||
git tag -f nightly ${{ github.sha }}
|
git tag -f nightly ${{ github.sha }}
|
||||||
git push -f origin nightly
|
git push -f origin nightly
|
||||||
|
|
||||||
- name: Update Nightly Release
|
- name: Update Nightly Release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
tag_name: nightly
|
tag_name: nightly
|
||||||
target_commitish: ${{ github.sha }}
|
target_commitish: ${{ github.sha }}
|
||||||
name: "Nightly Development Build"
|
name: "Nightly Development Build"
|
||||||
body: |
|
body: |
|
||||||
Automated rolling nightly build from the latest commit on `main`.
|
Automated rolling nightly build from the latest commit on `main`.
|
||||||
|
|
||||||
**Commit:** ${{ github.sha }}
|
**Commit:** ${{ github.sha }}
|
||||||
prerelease: true
|
prerelease: true
|
||||||
files: |
|
files: |
|
||||||
${{ github.workspace }}/${{ steps.build.outputs.build }}
|
${{ github.workspace }}/${{ steps.build.outputs.build }}
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
Reference in New Issue
Block a user