Skip to content

Commit

Permalink
update workflow versions + add manual trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
luttje committed Dec 1, 2024
1 parent 26da3ab commit 220e650
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/publish_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ on:
push:
tags:
- 'v*'
workflow_dispatch:

jobs:
publish_rock_and_build_ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: '18'

Expand Down Expand Up @@ -52,17 +53,17 @@ jobs:
run: mv ./dist/jestronaut ./dist/jestronaut-ubuntu

- name: Upload binary artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: jestronaut-ubuntu
path: dist/jestronaut-ubuntu

build_windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: '18'

Expand All @@ -80,17 +81,17 @@ jobs:
run: mv ./dist/jestronaut.exe ./dist/jestronaut-windows.exe

- name: Upload binary artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: jestronaut-windows
path: dist/jestronaut-windows.exe

build_gmod_addon:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: '18'

Expand All @@ -101,7 +102,7 @@ jobs:
run: npm run build:gmod

- name: Upload GMod addon artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: jestronaut-gmod
path: dist/gmod-addon.zip
Expand All @@ -112,19 +113,19 @@ jobs:
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Create dist directory
run: mkdir -p dist

- name: Download binary artifact from publish_rock_and_build_ubuntu
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: jestronaut-ubuntu
path: dist

- name: Download binary artifact from build_windows
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: jestronaut-windows
path: dist
Expand Down

0 comments on commit 220e650

Please sign in to comment.