Skip to content

ci: add a release workflow #1

ci: add a release workflow

ci: add a release workflow #1

Workflow file for this run

name: Release workflow
on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Release, please
uses: google-github-actions/release-please-action@v4.0.1
with:
package-name: brunch.nvim
release-type: simple
- name: Check out the repository
uses: actions/checkout@v4.1.1
- name: Tag the stable release
if: ${{ steps.release.outputs.release_created }}
run: |
git config user.name github-actions[bot]
git config user.email github-actions[bot]@users.noreply.github.com
git remote add gh-token "https://${{ secrets.GITHUB_TOKEN }}@github.com/google-github-actions/release-please-action.git"
git tag -d stable || true
git push origin :stable || true
git tag -a stable -m "Latest stable release"
git push origin stable