Skip to content

Commit

Permalink
Use goreleaser for push artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
mircearoata committed Feb 3, 2024
1 parent 58c246b commit 3452deb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 21 deletions.
30 changes: 9 additions & 21 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,7 @@ env:

jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
include:
- os: ubuntu-latest
artifactName: linux
buildArgs: ''
- os: windows-latest
artifactName: windows
buildArgs: -nsis
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

Expand All @@ -40,25 +29,24 @@ jobs:
cache-dependency-path: frontend

- name: Install additional dependencies
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt update
sudo apt -y install libgtk-3-dev libwebkit2gtk-4.0-dev
sudo apt -y install libgtk-3-dev libwebkit2gtk-4.0-dev nsis
- name: Install Wails
run: go install github.com/wailsapp/wails/v2/cmd/wails@latest

- name: Generate files
run: go generate -x -tags tools ./...

- name: Build
run: wails build ${{ matrix.buildArgs }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: release --snapshot -p 1 --clean # Multiple Wails builds cannot be executed in parallel

- name: Archive artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.artifactName }}
path: build/bin/*
name: all-builds
path: dist/**/*

lint-backend:
strategy:
Expand Down
3 changes: 3 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ checksum:

### Release

snapshot:
name_template: '{{ .Version }}+{{ if ne .Branch "master" }}{{ .Branch }}.{{ end }}{{ .ShortCommit }}'

release:
draft: true
name_template: "{{.ProjectName}} v{{.Version}}"
Expand Down

0 comments on commit 3452deb

Please sign in to comment.