Update versions of go and node #371
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: goreleaser build | |
on: | |
pull_request: | |
branches: | |
- '**' | |
push: | |
branches: | |
- master | |
jobs: | |
goreleaser: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.21 | |
- name: Set up Node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '18' | |
- run: yarn --frozen-lockfile | |
working-directory: ./ui/desktop | |
- run: yarn build | |
working-directory: ./ui/desktop | |
- name: Run GoReleaser | |
uses: goreleaser/goreleaser-action@v4 | |
with: | |
version: latest | |
args: release --snapshot --skip-publish --clean | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- uses: actions/upload-artifact@v2 | |
if: ${{ always() }} | |
with: | |
name: binaries | |
path: | | |
dist/*.tgz | |
dist/*.tar.gz | |
dist/*.zip |