From f5877a29c37466f9d59985734da829b793bf8a7a Mon Sep 17 00:00:00 2001 From: stephendpmurphy Date: Wed, 30 Sep 2020 10:01:44 -0400 Subject: [PATCH] Updating version bump yml config for Github Actions --- .github/workflows/release.yml | 27 ------------------------- .github/workflows/version_bump.yml | 32 ++++++++---------------------- 2 files changed, 8 insertions(+), 51 deletions(-) delete mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index a94e2ad..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,27 +0,0 @@ -on: - push: - # Sequence of patterns matched against refs/tags - tags: - - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 - -name: Create Release - -jobs: - build: - name: Create Release - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v2 - - name: Create Release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token - with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} - body: | - 'new release' - draft: false - prerelease: false diff --git a/.github/workflows/version_bump.yml b/.github/workflows/version_bump.yml index b068c96..59aea3e 100644 --- a/.github/workflows/version_bump.yml +++ b/.github/workflows/version_bump.yml @@ -1,32 +1,16 @@ -name: Release +name: Version Bump & Release + on: push: branches: - master + jobs: - build: + release-on-push: runs-on: ubuntu-latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - - uses: actions/checkout@master - with: - fetch-depth: '0' - - name: Bump version and push tag - id: bump_version - uses: anothrNick/github-tag-action@1.26.0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - WITH_V: true - RELEASE_BRANCHES: 'master' - - - name: Create Release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token + - uses: rymndhng/release-on-push-action@master with: - tag_name: ${{ bump_version.outputs.new_tag }} - release_name: Release ${{ bump_version.outputs.new_tag }} - body: | - 'new release' - draft: false - prerelease: false + bump_version_scheme: minor