act/.github/workflows/promote.yml

30 lines
707 B
YAML
Raw Normal View History

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 }}
- uses: fregante/setup-git-user@v2
- uses: actions/setup-go@v4
2022-06-20 18:31:51 -05:00
with:
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