Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
build_and_upload:
strategy:
matrix:
os: [ubuntu-22.04, macos-latest]
os: [ubuntu-22.04, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand All @@ -37,14 +37,26 @@ jobs:
OS_ID: ${{ matrix.os }}
- run: npm run build:ts

- name: pack build/warpo directory
- name: pack build/warpo directory (unix)
if: runner.os != 'Windows'
run: |
tar -czvf build/warpo-${{ steps.release_info.outputs.VERSION }}-${{ steps.release_info.outputs.PLATFORM }}-${{ steps.release_info.outputs.ARCH }}.tar.gz -C build warpo
- name: pack build/warpo directory (windows)
if: runner.os == 'Windows'
shell: pwsh
run: |
Compress-Archive -Path build/warpo -DestinationPath build/warpo-${{ steps.release_info.outputs.VERSION }}-${{ steps.release_info.outputs.PLATFORM }}-${{ steps.release_info.outputs.ARCH }}.zip
- id: set_ext
run: |
if [ "$RUNNER_OS" = "Windows" ]; then
echo "EXT=zip" >> $GITHUB_OUTPUT
else
echo "EXT=tar.gz" >> $GITHUB_OUTPUT
fi
- name: upload to GitHub Release
uses: softprops/action-gh-release@v2
with:
files: |
build/warpo-${{ steps.release_info.outputs.VERSION }}-${{ steps.release_info.outputs.PLATFORM }}-${{ steps.release_info.outputs.ARCH }}.tar.gz
files: build/warpo-${{ steps.release_info.outputs.VERSION }}-${{ steps.release_info.outputs.PLATFORM }}-${{ steps.release_info.outputs.ARCH }}.${{ steps.set_ext.outputs.EXT }}

npm:
runs-on: ubuntu-latest
Expand Down
Loading