Skip to content

Commit

Permalink
feat: upload artefacts and push release
Browse files Browse the repository at this point in the history
  • Loading branch information
matteomiceli committed Jun 23, 2024
1 parent 7cbf078 commit 8186ce1
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 11 deletions.
35 changes: 25 additions & 10 deletions .github/workflows/app-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,18 +59,33 @@ jobs:

# Build runik
- name: Build Runik
run: wails build --platform ${{ matrix.build.platform }} -o ${{ matrix.build.name }}
if: runner.os != 'Windows'
run: wails build --platform ${{ matrix.build.platform }} -o ${{ matrix.build.name }}_${{ runner.os }}

- name: Build Runik for windows
if: runner.os == 'Windows'
run: wails build --platform ${{ matrix.build.platform }} -o ${{ matrix.build.name }}_${{ runner.os }} -nsis

# Assign perms
- name: Macos perms
if: inputs.build == 'true' && runner.os == 'macOS'
- name: Apply macos perms
if: runner.os == 'macOS'
run: chmod +x build/bin/*/Contents/MacOS/*
- name: Linux perms
if: inputs.build == 'true' && runner.os == 'Linux'
- name: Apply linux perms
if: runner.os == 'Linux'
run: chmod +x build/bin/*

# Zip macos App package
- name: Zip macos universal binary
if: runner.os == 'macOS'
run: |
cd build/bin
zip -r runik_mac_universal.zip "Runik Core.app"
# TODO: Release and upload assets
# - name: Upload artefacts
# uses:
# - name: Make release
# uses:
# Publish release
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
build/bin/*
1 change: 0 additions & 1 deletion wails.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"$schema": "https://wails.io/schemas/config.v2.json",
"name": "Runik Core",
"outputfilename": "Runik Core",
"frontend:install": "npm install",
"frontend:build": "npm run build",
"frontend:dev:watcher": "npm run dev",
Expand Down

0 comments on commit 8186ce1

Please sign in to comment.