Skip to content

tweaks

tweaks #5

Workflow file for this run

name: Release
on:
push:
tags:
- '*'
jobs:
build-and-release:
name: Build and Release
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, macos-latest]
include:
- os: windows-latest
output_name: screen_complete.exe
- os: macos-latest
output_name: screen_complete
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Set up GCC
uses: egor-tensin/setup-gcc@v1
with:
version: latest
platform: x64
- name: Build
run: |
go build -o ${{ matrix.output_name }} ./cmd/screen_complete
- name: Create Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: ${{ matrix.output_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}