2022-06-20 23:38:48 +00:00
|
|
|
name: promote
|
2022-06-20 23:31:51 +00:00
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: '0 2 1 * *'
|
2022-06-20 23:33:24 +00:00
|
|
|
workflow_dispatch: {}
|
2022-06-20 23:31:51 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
release:
|
2022-06-20 23:38:48 +00:00
|
|
|
name: promote
|
2022-06-20 23:31:51 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
ref: master
|
2022-06-20 23:49:57 +00:00
|
|
|
token: ${{ secrets.GORELEASER_GITHUB_TOKEN }}
|
2023-03-19 23:21:57 +00:00
|
|
|
- uses: fregante/setup-git-user@v2
|
2023-03-20 03:31:00 +00:00
|
|
|
- uses: actions/setup-go@v4
|
2022-06-20 23:31:51 +00:00
|
|
|
with:
|
2023-07-11 04:55:53 +00:00
|
|
|
go-version-file: go.mod
|
2022-06-20 23:31:51 +00:00
|
|
|
check-latest: true
|
|
|
|
- uses: actions/cache@v3
|
|
|
|
if: ${{ !env.ACT }}
|
|
|
|
with:
|
|
|
|
path: ~/go/pkg/mod
|
|
|
|
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-go-
|
|
|
|
- run: make promote
|