Skip to content

Commit

Permalink
release event not trigger..
Browse files Browse the repository at this point in the history
  • Loading branch information
jcouyang committed Nov 21, 2020
1 parent 89a2c0e commit f2a3ed6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Publish
on:
release
push:
tags:
- v[0-9]+.*

jobs:
publish:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,7 @@ jobs:
LOCAL_VERSION=$(dhall text <<< 'let a = ./app.dhall in "v${a.version}"')
echo "main version is $LAST_RELEASE and current version is $LOCAL_VERSION"
if [ $LAST_RELEASE != $LOCAL_VERSION ];then
git tag ${LOCAL_VERSION}
git push origin ${LOCAL_VERSION}
hub release create -m "${LOCAL_VERSION}" "${LOCAL_VERSION}"
fi

0 comments on commit f2a3ed6

Please # to comment.