From 64df460c2ff1dba88cd6064fc51fbeb289f62733 Mon Sep 17 00:00:00 2001 From: Edward Brown Date: Wed, 1 Feb 2023 11:09:19 +0000 Subject: [PATCH] Modify to use release branch --- .github/workflows/main.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a50cead..f62e420 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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' @@ -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: