Skip to content

Commit

Permalink
Make dev release a semantic version 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mmulholla committed Mar 8, 2022
1 parent bbdbf83 commit bb00e33
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/dev_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ jobs:
build:
name: Create Dev Release
runs-on: ubuntu-latest
env:
DEV_RELEASE: 0.1.0

steps:
- name: Checkout code
Expand Down Expand Up @@ -40,23 +42,23 @@ jobs:
id: create-tarfile
run: |
# check if release file only is included in PR
ve1/bin/tar-file --release="dev"
ve1/bin/tar-file --release=${DEV_RELEASE}
- name: Delete previous release and tag
if: ${{ steps.create-tarfile.outcome == 'success' }}
uses: dev-drprasad/delete-tag-and-release@v0.2.0
with:
delete_release: true # default: false
tag_name: dev # tag name to delete
tag_name: ${DEV_RELEASE} # tag name to delete
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create the the release
- name: Create the release
id: create_release
if: ${{ always() && steps.create-tarfile.outcome == 'success' }}
uses: softprops/action-gh-release@v1
with:
tag_name: dev
tag_name: ${DEV_RELEASE}
body: "Development release created with each merge into the main branch."
files: ${{ steps.create-tarfile.outputs.tarball_full_name }}
env:
Expand Down

0 comments on commit bb00e33

Please sign in to comment.