mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
52 lines
No EOL
1,018 B
YAML
52 lines
No EOL
1,018 B
YAML
name: goreleaser
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- '*'
|
|
pull_request:
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
goreleaser:
|
|
name: Build and publish Go binaries
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
-
|
|
name: Checkout
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
-
|
|
name: Set up Node
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: '16'
|
|
-
|
|
name: Build web
|
|
run: |
|
|
cd web && yarn install
|
|
CI= yarn build
|
|
-
|
|
name: Set up Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: 1.18.3
|
|
-
|
|
name: Run GoReleaser
|
|
uses: goreleaser/goreleaser-action@v2
|
|
with:
|
|
distribution: goreleaser
|
|
version: latest
|
|
args: release --rm-dist
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Upload assets
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: autobrr
|
|
path: dist/* |