Skip to content

ci: Add write permission & bump version #20

ci: Add write permission & bump version

ci: Add write permission & bump version #20

Workflow file for this run

name: Build WinBoat
permissions:
contents: write
on:
push:
branches:
- main
tags:
- "v*"
jobs:
build:
runs-on: ubuntu-latest
if: github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
cache: "npm"
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "stable"
- name: Install dependencies
run: npm ci
- name: Build guest server and app
run: npm run build:linux-gs
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: linux-artifacts
path: dist/*
release:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 'stable'
- name: Install dependencies
run: npm ci
- name: Build guest server and app
run: npm run build:linux-gs
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Package unpacked variant
run: |
cd dist
zip -r winboat-linux-unpacked.zip linux-unpacked/
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
files: |
dist/*.AppImage
dist/winboat-linux-unpacked.zip
dist/latest-linux.yml
draft: false
prerelease: false
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}