fix css, add app icon #10
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: Build EXE | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
release: | |
types: | |
- created | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.23.2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '22' | |
- name: Cache Go modules | |
uses: actions/cache@v3 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- name: Cache npm dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-npm-${{ hashFiles('frontend/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-npm- | |
- name: Install wails | |
run: go install github.com/wailsapp/wails/v2/cmd/wails@latest | |
- name: Install go dependencies | |
run: go get | |
- name: Install frontend dependencies | |
working-directory: frontend | |
run: npm install | |
- name: Compile application | |
run: wails build | |
- name: Upload artifact | |
if: github.event_name == 'push' || github.event_name == 'pull_request' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: DCSFlightTracker.exe | |
path: build/bin/DCSFlightTracker.exe | |
- name: Upload to release | |
if: github.event_name == 'release' && github.event.action == 'created' | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: build/bin/DCSFlightTracker.exe |