From 2ecce2408cfac4726d84e22f4c91bb6a1dcfaf8b Mon Sep 17 00:00:00 2001 From: Ian Rash Date: Mon, 4 Sep 2023 06:17:46 -0700 Subject: [PATCH] Trying new workflows for updating releases --- github-workflows/ubuntu-prerelease.yml | 15 +++++++-------- github-workflows/ubuntu-release.yml | 13 ++++++------- github-workflows/windows-prerelease.yml | 12 ++++++------ github-workflows/windows-release.yml | 12 ++++++------ 4 files changed, 25 insertions(+), 27 deletions(-) diff --git a/github-workflows/ubuntu-prerelease.yml b/github-workflows/ubuntu-prerelease.yml index f4d9f93..a57aea4 100644 --- a/github-workflows/ubuntu-prerelease.yml +++ b/github-workflows/ubuntu-prerelease.yml @@ -9,7 +9,8 @@ jobs: pre-release: name: "Pre Release" runs-on: "ubuntu-latest" - + permissions: + contents: write steps: - name: Download source uses: actions/checkout@v2 @@ -18,7 +19,7 @@ jobs: - name: Install Crystal libs run: shards install - name: raylib-cr post-install - run: sh ./lib/raylib-cr/rsrc/install.sh + run: sh ./lib/raylib-cr/rsrc/install-lib.sh - name: Build project run: shards build --release - name: git lfs fetch @@ -32,11 +33,9 @@ jobs: - name: Zip files run: zip -r ubuntu-prerelease.zip bin/** - - uses: "marvinpinto/action-automatic-releases@latest" + - uses: ncipollo/release-action@v1 with: - repo_token: "${{ secrets.GITHUB_TOKEN }}" - automatic_release_tag: "latest" - prerelease: true + allowUpdates: true title: "Nightly" - files: | - ubuntu-prerelease.zip \ No newline at end of file + prerelease: true + artifacts: "ubuntu-prerelease.zip" \ No newline at end of file diff --git a/github-workflows/ubuntu-release.yml b/github-workflows/ubuntu-release.yml index 3b2f244..963ede9 100644 --- a/github-workflows/ubuntu-release.yml +++ b/github-workflows/ubuntu-release.yml @@ -9,7 +9,8 @@ jobs: release: name: "Release" runs-on: "ubuntu-latest" - + permissions: + contents: write steps: - name: Download source uses: actions/checkout@v2 @@ -18,7 +19,7 @@ jobs: - name: Install Crystal libs run: shards install - name: raylib-cr post-install - run: sh ./lib/raylib-cr/rsrc/install.sh + run: sh ./lib/raylib-cr/rsrc/install-lib.sh - name: Build project run: shards build --release - name: git lfs fetch @@ -32,9 +33,7 @@ jobs: - name: Zip files run: zip -r ubuntu-release.zip bin/** - - uses: "marvinpinto/action-automatic-releases@latest" + - uses: ncipollo/release-action@v1 with: - repo_token: "${{ secrets.GITHUB_TOKEN }}" - prerelease: false - files: | - ubuntu-release.zip \ No newline at end of file + allowUpdates: true + artifacts: "ubuntu-release.zip" \ No newline at end of file diff --git a/github-workflows/windows-prerelease.yml b/github-workflows/windows-prerelease.yml index f53ab19..4d7ae8f 100644 --- a/github-workflows/windows-prerelease.yml +++ b/github-workflows/windows-prerelease.yml @@ -4,6 +4,8 @@ jobs: build: name: Windows - Pre Release runs-on: windows-latest + permissions: + contents: write steps: - name: Download source uses: actions/checkout@v2 @@ -51,11 +53,9 @@ jobs: del bin/rsrc/_dev - name: Zip run: Compress-Archive -Path "bin/*" -DestinationPath windows-prerelease.zip - - uses: "marvinpinto/action-automatic-releases@latest" + - uses: ncipollo/release-action@v1 with: - repo_token: "${{ secrets.GITHUB_TOKEN }}" - automatic_release_tag: "latest" - prerelease: true + allowUpdates: true title: "Nightly" - files: | - windows-prerelease.zip \ No newline at end of file + prerelease: true + artifacts: "windows-prerelease.zip" \ No newline at end of file diff --git a/github-workflows/windows-release.yml b/github-workflows/windows-release.yml index 62e8055..27364a1 100644 --- a/github-workflows/windows-release.yml +++ b/github-workflows/windows-release.yml @@ -7,6 +7,8 @@ jobs: build: name: Windows - Release runs-on: windows-latest + permissions: + contents: write steps: - name: Download source uses: actions/checkout@v2 @@ -53,11 +55,9 @@ jobs: copy rsrc/* bin/rsrc del bin/rsrc/_dev - name: Zip - run: Compress-Archive -Path "bin/*" -DestinationPath windows-prerelease.zip + run: Compress-Archive -Path "bin/*" -DestinationPath windows-release.zip - - uses: "marvinpinto/action-automatic-releases@latest" + - uses: ncipollo/release-action@v1 with: - repo_token: "${{ secrets.GITHUB_TOKEN }}" - prerelease: false - files: | - windows-release.zip \ No newline at end of file + allowUpdates: true + artifacts: "windows-release.zip" \ No newline at end of file