2022-07-27 02:17:00 +09:00
|
|
|
name: release
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
2022-08-04 02:31:10 +09:00
|
|
|
- "v*.*.*"
|
2022-07-27 02:17:00 +09:00
|
|
|
|
|
|
|
jobs:
|
2022-08-04 02:31:10 +09:00
|
|
|
build:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
|
|
|
|
runs-on: ${{ matrix.os }}
|
2022-07-27 02:17:00 +09:00
|
|
|
|
|
|
|
steps:
|
2022-08-04 02:31:10 +09:00
|
|
|
- name: Install V
|
|
|
|
uses: vlang/setup-v@v1
|
2022-07-27 02:17:00 +09:00
|
|
|
with:
|
2022-08-04 02:31:10 +09:00
|
|
|
check-latest: true
|
2022-07-27 02:17:00 +09:00
|
|
|
|
2022-08-04 02:31:10 +09:00
|
|
|
- name: Install Task
|
|
|
|
uses: arduino/setup-task@v1
|
|
|
|
|
|
|
|
- name: Checkout ${{ github.event.repository.name }}
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
2022-08-04 02:36:32 +09:00
|
|
|
- name: Install deps
|
|
|
|
run: task setup
|
|
|
|
|
2022-08-04 02:31:10 +09:00
|
|
|
- name: Build ${{ github.event.repository.name }}
|
|
|
|
run: task dist
|
2022-08-04 02:36:32 +09:00
|
|
|
|
2022-07-27 02:17:00 +09:00
|
|
|
- name: Release
|
|
|
|
uses: softprops/action-gh-release@v1
|
2022-08-04 02:42:05 +09:00
|
|
|
if: startsWith(github.ref, 'refs/tags/')
|
2022-07-27 02:17:00 +09:00
|
|
|
with:
|
|
|
|
files: |
|
2022-08-04 02:31:10 +09:00
|
|
|
dist/**
|