Skip to content

Commit

Permalink
Merge pull request #68 from TypeTogether/release-tags
Browse files Browse the repository at this point in the history
Release triggered by tags instead of release
  • Loading branch information
vv-monsalve authored Jun 12, 2024
2 parents e25dd34 + 48a7ffc commit 5f6fb86
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:

release:
# only run if the commit is tagged...
if: github.event_name == 'release'
if: contains(github.ref, 'refs/tags/')
# ... and it builds successfully
needs:
- build
Expand All @@ -74,3 +74,9 @@ jobs:
tag: ${{ github.ref }}
overwrite: true
body: "Production ready fonts"
- name: Check for release
id: create_release
run: |
if ! gh release view ${{ github.ref_name }}; then
git show -s --format=%B ${{ github.ref_name }} | tail -n +4 | gh release create ${{ github.ref_name }} -t ${{ github.ref_name }} -F -
fi

0 comments on commit 5f6fb86

Please sign in to comment.