Set providers as env variable #3
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
name: Release Build Binaries | |
on: | |
release: | |
types: [created] | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
os: [linux, windows, darwin] | |
arch: [amd64, arm64] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "1.23.2" | |
- name: Build Binaries | |
run: | | |
ext=${{ matrix.os == 'windows' && '.exe' || '' }} | |
env GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} go build -o email-switch-${{ matrix.os }}-${{ matrix.arch }}$ext . | |
- name: Upload Release Assets | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
tag: ${{ github.ref }} | |
file: email-switch-* | |
file_glob: true | |
overwrite: true |