PalWorld 0.3.9 compatibility #13
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Build | |
on: | |
push: | |
tags: | |
- "v*" | |
workflow_dispatch: | |
jobs: | |
release-build: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12.2 | |
architecture: x64 | |
- name: Set up Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Windows Build | |
if: runner.os == 'Windows' | |
shell: pwsh | |
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 | |
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_${{ runner.os }}_artifact | |
path: ./dist/ | |
- name: Create and Upload Release | |
uses: softprops/action-gh-release@v2 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: dist/* | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |