Skip to content

Commit 85cb257

Browse files
authored
feat(cd): add release action (#4)
## 📃 Summary closes #3
1 parent 61c0d97 commit 85cb257

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/main.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,26 @@ jobs:
7070

7171
- name: run tests
7272
run: make test-ci
73+
74+
release:
75+
name: release
76+
if: ${{ github.ref == 'refs/heads/main' }}
77+
needs:
78+
- tests
79+
runs-on: ubuntu-latest
80+
steps:
81+
- uses: actions/checkout@v3
82+
83+
- uses: google-github-actions/release-please-action@v3
84+
id: release
85+
with:
86+
release-type: simple
87+
package-name: YOUR_REPOSITORY_NAME
88+
89+
- name: tag new release
90+
if: ${{ steps.release.outputs.release_created }}
91+
run: |
92+
git config user.name github-actions[bot]
93+
git config user.email github-actions[bot]@users.noreply.github.com
94+
git remote add gh-token "https://${{ secrets.GITHUB_TOKEN }}@github.com/google-github-actions/release-please-action.git"
95+
NEXT_TAG="${{ steps.release.outputs.version }}" make release

0 commit comments

Comments
 (0)