Skip to content

fix deplay.yml?

fix deplay.yml? #4

Workflow file for this run

name: Deploy
on:
push:
tags:
- 'v*.*.*'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22.5'
- name: Build for ${{ matrix.os }}
run: go build -o addframe-${{ matrix.os }}
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: addframe-${{ matrix.os }}
path: addframe-${{ matrix.os }}
release:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: actions/download-artifact@v3
with:
path: ./artifacts
- name: Release
uses: softprops/action-gh-release@v1
with:
files: ./artifacts/addframe-*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}