Skip to content

Commit

Permalink
Modify to use release branch
Browse files Browse the repository at this point in the history
  • Loading branch information
ejohb committed Feb 1, 2023
1 parent e402d79 commit 64df460
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ jobs:
NAME: ${{ github.event.repository.name }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Increment Version
run: |
git config --global user.name 'Frontmatter Actions'
Expand All @@ -26,9 +28,11 @@ jobs:
git add hct.be
git add README.md
git commit -am "Increment version number to ${VERSION} for release"
git push
git tag v${VERSION}
git push --tags
git push
git tag -a v${VERSION} -m "Release version ${VERSION}"
git checkout --track origin/release
git rebase master
git push --follow-tags
- name: Create GitHub Release
uses: ncipollo/release-action@v1
with:
Expand Down

0 comments on commit 64df460

Please sign in to comment.