Skip to content

Commit

Permalink
Merge pull request #66
Browse files Browse the repository at this point in the history
auto_release
  • Loading branch information
golmschenk authored May 3, 2024
2 parents b7dc055 + 6d396a2 commit b173b0f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@ jobs:
- name: build_dist
run: hatch build

tag_version:
tag_and_release:
name: tag_version
needs: [build]
runs-on: ubuntu-latest
permissions: write-all
if: github.ref == 'refs/heads/master' && github.event.pull_request.merged == true
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -58,3 +59,8 @@ jobs:
ref: `refs/tags/${process.env.VERSION}`,
sha: context.sha,
})
- name: create_release_from_tag
uses: softprops/action-gh-release@v2
if: ${{ env.TAG_EXISTS == 'false' }}
with:
tag_name: ${{ env.VERSION }}

0 comments on commit b173b0f

Please sign in to comment.