mirror of
https://github.com/zyedidia/micro.git
synced 2024-09-11 12:15:52 +03:00
release: Use GitHub Actions for manually triggered builds and artifact uploads (#3397)
This commit is contained in:
parent
d173e527ac
commit
e042bb3514
36
.github/workflows/release.yaml
vendored
Normal file
36
.github/workflows/release.yaml
vendored
Normal file
@ -0,0 +1,36 @@
|
||||
name: Release builds
|
||||
on:
|
||||
workflow_dispatch: # Allows manual trigger
|
||||
# push:
|
||||
# tags:
|
||||
# - 'v*.*.*' # automatically react on semantic versioned tags
|
||||
jobs:
|
||||
release:
|
||||
strategy:
|
||||
matrix:
|
||||
go-version: [1.19.x]
|
||||
os: [ubuntu-latest]
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- name: Setup
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: ${{ matrix.go-version }}
|
||||
cache: false
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
fetch-tags: true
|
||||
|
||||
- name: Build
|
||||
run: tools/cross-compile.sh
|
||||
|
||||
- name: Publish
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
files: binaries/*
|
||||
|
||||
- name: Cleanup
|
||||
run: rm -rf binaries
|
Loading…
Reference in New Issue
Block a user