Skip to content

release

release #2

Workflow file for this run

name: publish draft release
permissions: write-all
on:
workflow_dispatch:
jobs:
single-node:
runs-on: [self-hosted, style-checker]
steps:
- uses: actions/checkout@main
- name: Install Go 1.21
uses: actions/[email protected]
with:
stable: false
go-version: 1.21
- name: Prepare release
id: release_prep
run: |
go run internal/cmd/release_prep/main.go
- name: Commit and push hanges
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add .
git commit -m "Update release notes"
git push
- name: Publish draft release
env:
RELEASE_API_URL: ${{ steps.release_prep.outputs.RELEASE_URL }}
run: |
curl -X PATCH -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -H "Accept: application/vnd.github.v3+json" $RELEASE_API_URL -d '{"draft": false}'