Skip to content

Commit

Permalink
add schedueled release
Browse files Browse the repository at this point in the history
  • Loading branch information
elit-cx committed Jan 25, 2021
1 parent 1c89edb commit 0b6f0d2
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/release_nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: goreleaser

on:
schedule:
- cron: '* */5 * *'

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@v2
with:
go-version: 1.15
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist --config="./.goreleaser-schedueled.yml"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20 changes: 20 additions & 0 deletions .goreleaser-schedueled.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
project_name: test

builds:
- main: main.go
binary: test
goos:
- linux
- windows
goarch:
- amd64
archives:
-
builds: [test]
format_overrides:
- goos: windows
format: zip
release:
prerelease: true
snapshot:
name_template: "{{ .Tag }}-next"

0 comments on commit 0b6f0d2

Please sign in to comment.