Skip to content

Commit

Permalink
feat(cd): add release action (#4)
Browse files Browse the repository at this point in the history
## 馃搩 Summary

closes #3
  • Loading branch information
shortcuts committed Jan 5, 2023
1 parent 61c0d97 commit 85cb257
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,26 @@ jobs:

- name: run tests
run: make test-ci

release:
name: release
if: ${{ github.ref == 'refs/heads/main' }}
needs:
- tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: simple
package-name: YOUR_REPOSITORY_NAME

- name: tag new release
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"
NEXT_TAG="${{ steps.release.outputs.version }}" make release

0 comments on commit 85cb257

Please sign in to comment.