-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (27 loc) · 885 Bytes
/
Copy pathrelease.yml
File metadata and controls
32 lines (27 loc) · 885 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Release
on:
push:
branches: [master]
permissions:
contents: write
pull-requests: write
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
config-file: release-please-config.json
manifest-file: .release-please-manifest.json
- uses: actions/checkout@v4
if: ${{ steps.release.outputs.release_created }}
- name: tag stable version
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 tag -d stable 2>/dev/null || true
git push origin :refs/tags/stable 2>/dev/null || true
git tag -a stable -m "Last stable release"
git push origin stable