Skip to content

Commit

Permalink
Trying new workflows for updating releases
Browse files Browse the repository at this point in the history
  • Loading branch information
sol-vin committed Sep 4, 2023
1 parent 2d45003 commit 2ecce24
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 27 deletions.
15 changes: 7 additions & 8 deletions github-workflows/ubuntu-prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
prerelease: true
artifacts: "ubuntu-prerelease.zip"
13 changes: 6 additions & 7 deletions github-workflows/ubuntu-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ jobs:
release:
name: "Release"
runs-on: "ubuntu-latest"

permissions:
contents: write
steps:
- name: Download source
uses: actions/checkout@v2
Expand All @@ -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
Expand All @@ -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
allowUpdates: true
artifacts: "ubuntu-release.zip"
12 changes: 6 additions & 6 deletions github-workflows/windows-prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
prerelease: true
artifacts: "windows-prerelease.zip"
12 changes: 6 additions & 6 deletions github-workflows/windows-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ jobs:
build:
name: Windows - Release
runs-on: windows-latest
permissions:
contents: write
steps:
- name: Download source
uses: actions/checkout@v2
Expand Down Expand Up @@ -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
allowUpdates: true
artifacts: "windows-release.zip"

0 comments on commit 2ecce24

Please sign in to comment.