Skip to content

Commit

Permalink
try update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
KrisCris committed Apr 26, 2024
1 parent 598a0a7 commit 7e69060
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dev-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- release

jobs:
dev-release:
dev-build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
Expand Down Expand Up @@ -40,5 +40,5 @@ jobs:
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: Palworld_Pal_Editor_${{ matrix.os }}_artifact
name: Palworld_Pal_Editor_${{ runner.os }}_artifact
path: ./dist/
20 changes: 13 additions & 7 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- "v*"

jobs:
dev-release:
release-build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
Expand All @@ -29,20 +29,26 @@ jobs:
with:
node-version: 20

- name: Run Windows Builder Script
- name: Windows Build
if: runner.os == 'Windows'
shell: pwsh
run: ./build_executable.ps1

- name: Run Unix-like Builder Script
run: |
./build_executable.ps1
$tagName = "${{ github.ref_name }}"
Rename-Item ./dist/palworld-pal-editor.exe "palworld-pal-editor-$tagName-${{ runner.os }}.exe"
- name: Unix-like Build
if: runner.os != 'Windows'
shell: bash
run: ./build_executable.sh
run: |
./build_executable.sh
tagName=${GITHUB_REF#refs/tags/}
mv ./dist/palworld-pal-editor ./dist/palworld-pal-editor-$tagName-${{ runner.os }}
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: Palworld_Pal_Editor_${{ matrix.os }}_artifact
name: Palworld_Pal_Editor_${{ runner.os }}_artifact
path: ./dist/

- name: Create and Upload Release
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- "v*"

jobs:
build-and-push:
build-and-push-docker-image:
runs-on: ubuntu-latest
permissions:
contents: read
Expand Down

0 comments on commit 7e69060

Please sign in to comment.