mirror of
https://github.com/go-task/task.git
synced 2025-05-13 22:16:31 +02:00
wip
This commit is contained in:
parent
6cb0a5a2f2
commit
6dd3599d16
31
.github/workflows/release-nightly.yml
vendored
Normal file
31
.github/workflows/release-nightly.yml
vendored
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
name: Realease nightly
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
schedule:
|
||||||
|
- cron: 0 0 * * *
|
||||||
|
|
||||||
|
|
||||||
|
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: Run GoReleaser
|
||||||
|
uses: goreleaser/goreleaser-action@v6
|
||||||
|
with:
|
||||||
|
distribution: goreleaser-pro
|
||||||
|
version: latest
|
||||||
|
args: release --clean --nightly
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{secrets.GH_PAT}}
|
||||||
|
GORELEASER_KEY: ${{secrets.GORELEASER_KEY}}
|
@ -48,6 +48,16 @@ archives:
|
|||||||
release:
|
release:
|
||||||
draft: true
|
draft: true
|
||||||
|
|
||||||
|
|
||||||
|
git:
|
||||||
|
ignore_tags:
|
||||||
|
- "{{ if not .IsNightly }}nightly{{ end }}"
|
||||||
|
|
||||||
|
nightly:
|
||||||
|
publish_release: true
|
||||||
|
keep_single_release: true
|
||||||
|
version_template: "{{ incminor .Version }}-nightly"
|
||||||
|
|
||||||
snapshot:
|
snapshot:
|
||||||
version_template: "{{.Version}}"
|
version_template: "{{.Version}}"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user