Skip to content

Commit

Permalink
chore(ci): make the release script run on tag push
Browse files Browse the repository at this point in the history
  • Loading branch information
shouya committed Feb 20, 2024
1 parent 3ea3d6d commit e130e50
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Modified from https://github.com/SpectralOps/rust-ci-release-template
name: Release
on:
release:
types: [created]
push:
tags:
- "*.*.*"
- "*.*.*-pre.*"

permissions:
contents: write
Expand Down Expand Up @@ -131,3 +133,5 @@ jobs:
file: dist/*
file_glob: true
overwrite: true
prerelease: ${{ contains(github.ref, '.pre-') }}
make_latest: ${{ !contains(github.ref, '.pre-') }}

0 comments on commit e130e50

Please sign in to comment.