Skip to content

Commit

Permalink
try a release concepts
Browse files Browse the repository at this point in the history
  • Loading branch information
seanenck committed Oct 22, 2024
1 parent 8d0e455 commit b3aaad1
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: release

on:
push:
tags:
- '*'

permissions:
contents: write

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux, darwin]
goarch: [amd64, arm64]
steps:
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: go
uses: actions/setup-go@v5
with:
go-version: 1.23
- name: deps
run: "sudo apt-get update && sudo apt-get install just"
- name: "build"
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
run: just clean default
- name: "compress"
run: "zip -r ${{ matrix.goos }}-${{ matrix.goarch }}.zip target/"
- name: "upload"
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.goos }}-${{ matrix.goarch }}
path: *.zip
release:
runs-on: ubuntu-latest
steps:
- name: download
uses: actions/download-artifact@v2
- name: release
uses: softprops/action-gh-release@v2
files: "*.zip"

0 comments on commit b3aaad1

Please sign in to comment.