| 1 |
name: release |
| 2 |
|
| 3 |
permissions: |
| 4 |
contents: write # Allow actions to update dependabot PRs |
| 5 |
|
| 6 |
on: |
| 7 |
push: |
| 8 |
tags: |
| 9 |
- kyaml/v* |
| 10 |
- cmd/config/v* |
| 11 |
- api/v* |
| 12 |
- kustomize/v* |
| 13 |
|
| 14 |
jobs: |
| 15 |
release: |
| 16 |
runs-on: ubuntu-latest |
| 17 |
steps: |
| 18 |
- name: Check out code into the Go module directory |
| 19 |
uses: actions/checkout@v6 |
| 20 |
with: |
| 21 |
fetch-depth: 0 |
| 22 |
- name: Set up Go 1.x |
| 23 |
uses: actions/setup-go@v6 |
| 24 |
with: |
| 25 |
go-version-file: go.work |
| 26 |
id: go |
| 27 |
- run: ./releasing/create-release.sh "${tag}" |
| 28 |
env: |
| 29 |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 30 |
tag: ${{ github.ref_name }} |