Skip to content

Commit b341ba3

Browse files
committed
ci: add release action
1 parent fa9be98 commit b341ba3

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Release
2+
on:
3+
push:
4+
pull_request:
5+
6+
jobs:
7+
release:
8+
name: release
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: google-github-actions/release-please-action@v3
12+
id: release
13+
with:
14+
release-type: simple
15+
package-name: CopilotChat.nvim
16+
- uses: actions/checkout@v3
17+
- name: tag stable versions
18+
if: ${{ steps.release.outputs.release_created }}
19+
run: |
20+
git config user.name github-actions[bot]
21+
git config user.email github-actions[bot]@users.noreply.github.com
22+
git remote add gh-token "https://${{ secrets.GITHUB_TOKEN }}@github.com/google-github-actions/release-please-action.git"
23+
git tag -d stable || true
24+
git push origin :stable || true
25+
git tag -a stable -m "Last Stable Release"
26+
git push origin stable

0 commit comments

Comments
 (0)