Skip to content

Refactor GitHub action into more scripts #6

Refactor GitHub action into more scripts

Refactor GitHub action into more scripts #6

Workflow file for this run

name: Create release
on:
pull_request_target:
branches:
- main
types:
- closed
permissions:
contents: write
actions: write
jobs:
release:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: install autotag binary
run: curl -sL https://git.io/autotag-install | sudo sh -s -- -b /usr/bin
- name: create release
run: |-
TAG=$(autotag)
git tag $TAG
git push origin $TAG
gh release create $TAG
gh workflow run goreleaser.yml --ref $TAG
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}