Skip to content

Commit

Permalink
Added signing
Browse files Browse the repository at this point in the history
  • Loading branch information
HadesArchitect authored May 9, 2021
1 parent 4d3666e commit 3fdda9a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ jobs:
run: docker run --rm -v ${PWD}:/go/src/github.com/ha/gcp -w /go/src/github.com/ha/gcp/backend -e GOOS=windows -e GOARCH=amd64 golang:1 go build -o ../dist/cassandra-plugin_windows_amd64.exe .
- name: go build darwin
run: docker run --rm -v ${PWD}:/go/src/github.com/ha/gcp -w /go/src/github.com/ha/gcp/backend -e GOOS=darwin -e GOARCH=amd64 golang:1 go build -o ../dist/cassandra-plugin_darwin_amd64 .
- name: Prepare dist
run: mv dist/ hadesarchitect-cassandra-datasource
- name: Package tar
run: tar -czvf cassandra-datasource-${{ github.event.release.tag_name }}.tar.gz ./hadesarchitect-cassandra-datasource
- name: Package zip
uses: jjkaram/archive-action@master
with:
args: "zip -r cassandra-datasource-${{ github.event.release.tag_name }}.zip ./hadesarchitect-cassandra-datasource"
- name: sign the build
run: docker run --rm -v ${PWD}:/opt/gcds -w /opt/gcds -e GRAFANA_API_KEY=${{ secrets.GRAFANA_API_KEY }} node:12 npm run-script sign
- name: Package plugin
id: package-plugin
run: |
mv dist/ hadesarchitect-cassandra-datasource
zip -r cassandra-datasource-${{ github.event.release.tag_name }}.zip ./hadesarchitect-cassandra-datasource
md5sum cassandra-datasource-${{ github.event.release.tag_name }}.zip > cassandra-datasource-${{ github.event.release.tag_name }}.zip.md5
- name: Upload the artifacts
uses: skx/github-action-publish-binaries@master
env:
Expand Down

0 comments on commit 3fdda9a

Please sign in to comment.