Skip to content

Commit

Permalink
chore: auto tagging
Browse files Browse the repository at this point in the history
  • Loading branch information
christophwitzko committed Apr 7, 2020
1 parent 7ff2ccf commit 1c1ff92
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,30 @@ jobs:
- run: npm ci
- run: npm test
- run: npm run build
- uses: ./
- name: go-semantic-release
id: semrel
uses: ./
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Git
if: steps.semrel.outputs.version != ''
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
- name: Update major tag
if: steps.semrel.outputs.version != ''
run: |
TAG=v${{ steps.semrel.outputs.version_major }}
git push origin :refs/tags/${TAG}
git tag -fa ${TAG} -m "Release v${{ steps.semrel.outputs.version }}"
git push origin ${TAG}
- name: Update minor tag
if: steps.semrel.outputs.version != ''
run: |
TAG=v${{ steps.semrel.outputs.version_major }}.${{ steps.semrel.outputs.version_minor }}
git push origin :refs/tags/${TAG}
git tag -fa ${TAG} -m "Release v${{ steps.semrel.outputs.version }}"
git push origin ${TAG}

0 comments on commit 1c1ff92

Please sign in to comment.