Skip to content

fix(providers): golang and pypi provider fix (#10) #17

fix(providers): golang and pypi provider fix (#10)

fix(providers): golang and pypi provider fix (#10) #17

Workflow file for this run

---
name: Release
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
build-linux:
name: Build for Linux
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up env
run: |
VERSION=${GITHUB_REF_NAME#v}
echo "VERSION=$VERSION" >> $GITHUB_ENV
echo "PLATFORM=linux" >> $GITHUB_ENV
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.22
- name: Build for Linux
run: ./scripts/build.sh
- name: Release for Linux
run: ./scripts/release.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build-macos:
name: Build for macOS
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up env
run: |
VERSION=${GITHUB_REF_NAME#v}
echo "VERSION=$VERSION" >> $GITHUB_ENV
echo "PLATFORM=macos" >> $GITHUB_ENV
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.22
- name: Build for macOS
run: ./scripts/build.sh
- name: Setting up Apple certificate
run: |
echo "${{ secrets.APPLE_CERTIFICATE_BASE64 }}" > apple-cert.p12.base64
base64 -d apple-cert.p12.base64 > apple-cert.p12
- name: Sign a amd64 macOS binary
uses: indygreg/apple-code-sign-action@v1
with:
input_path: dist/zana-darwin-amd64
p12_file: apple-cert.p12
p12_password: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
- name: Sign a arm64 macOS binary
uses: indygreg/apple-code-sign-action@v1
with:
input_path: dist/zana-darwin-arm64
p12_file: apple-cert.p12
p12_password: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
- name: Release for macOS
run: ./scripts/release.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build-windows:
name: Build for Windows
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up env
run: |
VERSION=${GITHUB_REF_NAME#v}
echo "VERSION=$VERSION" >> $GITHUB_ENV
echo "PLATFORM=windows" >> $GITHUB_ENV
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.22
- name: Build for Windows
run: ./scripts/build.sh
- name: Release for Windows
run: ./scripts/release.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}