mirror of
https://github.com/zyedidia/micro.git
synced 2025-06-18 14:55:38 -04:00
nightly: Use GitHub Actions for scheduled builds and artifact uploads
This commit is contained in:
parent
fc3a5cd038
commit
c701ba66af
42
.github/workflows/nightly.yaml
vendored
Normal file
42
.github/workflows/nightly.yaml
vendored
Normal file
@ -0,0 +1,42 @@
|
||||
name: Nightly builds
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 0 * * *'
|
||||
jobs:
|
||||
nightly:
|
||||
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 }}
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: master
|
||||
|
||||
- name: Build
|
||||
run: tools/cross-compile.sh
|
||||
|
||||
- name: Tag
|
||||
uses: rickstaa/action-create-tag@v1
|
||||
with:
|
||||
tag: nightly
|
||||
force_push_tag: true
|
||||
message: "Pre-release nightly"
|
||||
|
||||
- name: Publish
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
name: nightly
|
||||
tag_name: nightly
|
||||
files: binaries/*
|
||||
prerelease: true
|
||||
|
||||
- name: Cleanup
|
||||
run: rm -rf binaries
|
Loading…
Reference in New Issue
Block a user