Skip to content

Commit

Permalink
ci(release): use googleapis/release-please-action (#788)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgoudham authored Oct 26, 2024
1 parent 20b7c6c commit cf021eb
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@ name: release

on:
push:
pull_request:
branches: [main]
workflow_dispatch:

jobs:
release:
name: release
if: ${{ github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v4
- uses: googleapis/release-please-action@v4
id: release
with:
release-type: simple
Expand All @@ -21,8 +20,8 @@ jobs:
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 config user.email 41898282+github-actions[bot]@users.noreply.github.com
git remote add gh-token "https://${{ secrets.GITHUB_TOKEN }}@github.com/googleapis/release-please-action.git"
git tag -d stable || true
git push origin :stable || true
git tag -a stable -m "Last Stable Release"
Expand Down

0 comments on commit cf021eb

Please sign in to comment.