2022-06-20 18:38:48 -05:00
|
|
|
name: promote
|
2022-06-20 18:31:51 -05:00
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: '0 2 1 * *'
|
2022-06-20 18:33:24 -05:00
|
|
|
workflow_dispatch: {}
|
2022-06-20 18:31:51 -05:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
release:
|
2022-06-20 18:38:48 -05:00
|
|
|
name: promote
|
2022-06-20 18:31:51 -05:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
ref: master
|
2022-06-20 18:49:57 -05:00
|
|
|
token: ${{ secrets.GORELEASER_GITHUB_TOKEN }}
|
2023-03-19 18:21:57 -05:00
|
|
|
- uses: fregante/setup-git-user@v2
|
2023-03-19 22:31:00 -05:00
|
|
|
- uses: actions/setup-go@v4
|
2022-06-20 18:31:51 -05:00
|
|
|
with:
|
2023-07-10 23:55:53 -05:00
|
|
|
go-version-file: go.mod
|
2022-06-20 18:31:51 -05: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
|