-
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (49 loc) · 1.14 KB
/
build_and_release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Build and Release
on:
push:
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-13, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Deno
uses: actions/setup-deno@v2
with:
deno-version: v2.x
- name: Run Tests
run: deno test
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-13, macos-latest]
runs-on: ${{ matrix.os }}
needs:
- test
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Deno
uses: actions/setup-deno@v2
with:
deno-version: v2.x
- name: Build
run: deno task compile
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
path: builds/*
release:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
needs:
- build
steps:
- name: Create Release
uses: softprops/action-gh-release@v2
with:
files: build/*
token: ${{ secrets.GITHUB_TOKEN }}