1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-22 04:53:43 +08:00

ci(workflow): add release please action

This commit is contained in:
Eric Wong 2025-02-15 13:43:26 +08:00
parent e47c3a3b99
commit 76d42b203d
No known key found for this signature in database
GPG Key ID: 41BB7053E835C848
2 changed files with 26 additions and 0 deletions

View File

@ -156,6 +156,8 @@ main () {
_detact_bundle $1 lua/plug/ui.lua
_checkdir test
_detact_bundle $1 test/init.lua
_checkdir .github/workflows/
_detact_bundle $1 .github/workflows/release-please.yml
;;
format.nvim)
git clone https://github.com/wsdjeg/format.nvim.git detach/$1

View File

@ -0,0 +1,24 @@
on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
name: release-please
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
with:
# this assumes that you have created a personal access token
# (PAT) and configured it as a GitHub action secret named
# `MY_RELEASE_PLEASE_TOKEN` (this secret name is not important).
token: ${{ secrets.MY_RELEASE_PLEASE_TOKEN }}
# this is a built-in strategy in release-please, see "Action Inputs"
# for more options
release-type: simple