Skip to content

Commit d4f31fc

Browse files
authored
change publish pipeline (#3)
1 parent 5a013af commit d4f31fc

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/gradle-ci-publish.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: publish
22

33
on:
4-
release:
5-
types:
6-
- published
4+
push:
5+
tags:
6+
- 'v*'
77

88
jobs:
99
publish:
@@ -17,7 +17,8 @@ jobs:
1717

1818
- name: Prepare to publish
1919
run: |
20-
echo '${{secrets.GPG_KEY_CONTENTS}}' | base64 -d > secret.gpg
20+
gpg --quiet --batch --yes --decrypt --passphrase="${{secrets.SECRET_PASSPHRASE}}" \
21+
--output secret.gpg publish_key.gpg
2122
echo "::set-env name=RELEASE_VERSION::${GITHUB_REF:11}"
2223
2324
- name: Publish with Gradle

publish_key.gpg

2.65 KB
Binary file not shown.

0 commit comments

Comments
 (0)