summaryrefslogtreecommitdiff
path: root/.github/workflows/release_grpc.yml
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2022-05-09 16:23:25 +0200
committerValery Piashchynski <[email protected]>2022-05-09 16:23:25 +0200
commitd51bdba91768cd5ca63cc166f46910bd3e0d29cd (patch)
tree6062fc225c3521b84e8409205fac5d9ffb19ce2f /.github/workflows/release_grpc.yml
parent45e4f3480cbdef03981a57116e41b3611ec3da10 (diff)
add deb and signed releases
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to '.github/workflows/release_grpc.yml')
-rw-r--r--.github/workflows/release_grpc.yml24
1 files changed, 23 insertions, 1 deletions
diff --git a/.github/workflows/release_grpc.yml b/.github/workflows/release_grpc.yml
index d6e0bd39..cd043988 100644
--- a/.github/workflows/release_grpc.yml
+++ b/.github/workflows/release_grpc.yml
@@ -22,14 +22,22 @@ jobs:
compiler: gcc
archiver: tar
arch: amd64
+ #----------
- os: linux
compiler: gcc
archiver: tar
arch: arm64
+ #----------
+ - os: freebsd
+ compiler: gcc
+ archiver: tar
+ arch: amd64
+ #----------
- os: darwin
compiler: gcc
archiver: tar
arch: arm64
+ #----------
- os: ''
compiler: musl-gcc # more info: <https://musl.libc.org/>
archiver: zip
@@ -58,6 +66,19 @@ jobs:
echo "::set-output name=version::`echo ${GITHUB_REF##*/} | sed -e 's/^[vV ]*//'`"
echo "::set-output name=timestamp::`date +%FT%T%z`"
echo "::set-output name=binary-name::protoc-gen-php-grpc`[ ${{ matrix.os }} = 'windows' ] && echo '.exe'`"
+ if [ ${{ matrix.os }} == "windows" ]; then
+ echo "::set-output name=sign-cert-name::protoc-gen-php-grpc.exe.asc"
+ else
+ echo "::set-output name=sign-cert-name::protoc-gen-php-grpc.asc"
+ fi
+
+ - name: Import GPG key
+ uses: crazy-max/ghaction-import-gpg@v4
+ with:
+ gpg_private_key: ${{ secrets.GPG_SIGNING_KEY }}
+ passphrase: ${{ secrets.GPG_PASS }}
+ git_user_signingkey: true
+ git_commit_gpgsign: false
- name: Compile binary file
env:
@@ -70,6 +91,7 @@ jobs:
run: |
go build -trimpath -ldflags "$LDFLAGS" -o "./${{ steps.values.outputs.binary-name }}" protoc_plugins/protoc-gen-php-grpc/main.go
stat "./${{ steps.values.outputs.binary-name }}"
+ gpg --detach-sign --armor "./${{ steps.values.outputs.binary-name }}"
- name: Generate distributive directory name
id: dist-dir
@@ -94,7 +116,7 @@ jobs:
- name: Create distributive
run: |
mkdir ${{ steps.dist-dir.outputs.name }}
- mv "./${{ steps.values.outputs.binary-name }}" ./${{ steps.dist-dir.outputs.name }}/
+ mv "./${{ steps.values.outputs.binary-name }}" "./${{ steps.values.outputs.sign-cert-name }}" ./${{ steps.dist-dir.outputs.name }}/
- name: Pack distributive using tar
if: matrix.archiver == 'tar'