Skip to content

Update go-windows.yml #20

Update go-windows.yml

Update go-windows.yml #20

Workflow file for this run

name: Build Fyne App - Windows
on:
push:
branches:
- master
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.x
- name: Build Fyne App - Windows
run: go build cmd/fyne-app/main.go
- name: Package Fyne App - Widnows
run: |
cd cmd/fyne-app
go install fyne.io/fyne/v2/cmd/fyne@latest
fyne package -os windows -icon ../../assets/Icon.png -name PartsPal
- name: Save build artifact
run: |
if not exist build (
mkdir build
) else (
echo 'build' directory already exists
)
mv main.exe build/
mv cmd/fyne-app/PartsPal.exe build/
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git checkout -b fyne-build-windows
git add -f build/
git commit -m "Add Fyne app build for Windows"
git push --force origin fyne-build-windows