mirror of
https://github.com/go-task/task.git
synced 2025-10-08 23:02:02 +02:00
Co-authored-by: Pete Davison <pd93.uk@outlook.com> Co-authored-by: Andrey Nering <andreynering@users.noreply.github.com>
48 lines
979 B
YAML
48 lines
979 B
YAML
name: goreleaser
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
|
|
jobs:
|
|
goreleaser:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: 1.24.x
|
|
|
|
- name: Install Task
|
|
uses: arduino/setup-task@v2
|
|
|
|
- name: Install pnpm
|
|
uses: pnpm/action-setup@v4
|
|
|
|
- name: Install Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '22.x'
|
|
cache: 'pnpm'
|
|
|
|
- name: Run GoReleaser
|
|
uses: goreleaser/goreleaser-action@v6
|
|
with:
|
|
distribution: goreleaser-pro
|
|
version: latest
|
|
args: release --clean --draft
|
|
env:
|
|
GITHUB_TOKEN: ${{secrets.GH_PAT}}
|
|
GORELEASER_KEY: ${{secrets.GORELEASER_KEY}}
|
|
|
|
- name: Deploy Website
|
|
shell: bash
|
|
run: |
|
|
task website:deploy:prod
|