check for tag before releasing
This commit is contained in:
@ -6,10 +6,20 @@ on: [push]
|
|||||||
# - 'v[0-9]+\.[0-9]+\.[0-9]+'
|
# - 'v[0-9]+\.[0-9]+\.[0-9]+'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
check-tag:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Check for Tag
|
||||||
|
run: |-
|
||||||
|
TAGS="$(git tag --points-at HEAD)"
|
||||||
|
if [ -n $TAGS ]; then
|
||||||
|
fi
|
||||||
|
|
||||||
package:
|
package:
|
||||||
runs-on: rust-latest
|
runs-on: rust-latest
|
||||||
|
depends-on: ["check-tag"]
|
||||||
steps:
|
steps:
|
||||||
- run: echo ${{ github.ref }}
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Create Output Directory
|
- name: Create Output Directory
|
||||||
run: mkdir package
|
run: mkdir package
|
||||||
|
|||||||
Reference in New Issue
Block a user