Merge pull request #56 from cashapp/fix-sign-cast #25
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
tags: | |
- 'v*' | |
name: "Release Deployable" | |
jobs: | |
verify-release-tag: | |
name: "Verify release tag signature" | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Verify release tag" | |
uses: cashapp/check-signature-action@v0.2.0 | |
id: check-tag-sig | |
env: | |
GH_TOKEN: ${{ github.token }} | |
with: | |
allowed-release-signers: yoavamit,mightyguava | |
release-pivit: | |
name: "Release Pivit" | |
needs: verify-release-tag | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
go-version: [1.19.x] | |
os: [ubuntu-latest, macos-latest] | |
steps: | |
- name: "Install golang" | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- if: ${{ matrix.os == 'ubuntu-latest' }} | |
name: "Install dependencies" | |
run: | | |
sudo apt update | |
sudo apt install -y libpcsclite-dev | |
- if: ${{ matrix.os == 'macos-latest' }} | |
name: "Install dependencies (MacOS)" | |
run: | | |
brew install openssh | |
- name: "Checkout code" | |
uses: actions/checkout@v4 | |
- name: "Build release" | |
run: | | |
set -euxo pipefail | |
cd ${{ github.workspace }} | |
make release GOARCH=amd64 | |
if ${{ matrix.os == 'macos-latest' }}; then | |
make release GOARCH=arm64 | |
fi | |
- name: "Release versioned" | |
uses: ncipollo/release-action@v1 | |
with: | |
allowUpdates: true | |
artifacts: "pivit-*" | |
token: ${{ secrets.GITHUB_TOKEN }} |