-
-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (44 loc) · 1.82 KB
/
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
54
55
56
57
name: Release CD
on:
push:
tags:
- "*"
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[cd skip]')"
steps:
- uses: actions/checkout@v3
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- name: Format check
run: deno fmt --check src/client
- name: Lint
run: deno lint src/client
- name: Type check
run: deno check --no-lock --import-map src/import_map.json src/client/*.ts
# Disabled until useful tests have been written
#- name: Test
# run: deno test -A
- name: Compile
run: |
deno task compile --all --release
- name: Create archives
run: |
7z a autorender-${{ github.ref_name }}-linux.zip ${{ github.workspace }}/src/client/bin/autorenderclient
7z a autorender-${{ github.ref_name }}-windows.zip ${{ github.workspace }}/src/client/bin/autorenderclient.exe
- name: Create release
uses: softprops/action-gh-release@v1
with:
name: Autorender Client ${{ github.ref_name }}
prerelease: ${{ contains(github.ref, 'pre') }}
body: |
For render clients of [autorender.portal2.sr](https://autorender.portal2.sr).
Windows: [Download autorender-${{ github.ref_name }}-windows.zip](https://github.com/NeKzor/autorender/releases/download/${{ github.ref_name }}/autorender-${{ github.ref_name }}-windows.zip)
Linux: [Download autorender-${{ github.ref_name }}-linux.zip](https://github.com/NeKzor/autorender/releases/download/${{ github.ref_name }}/autorender-${{ github.ref_name }}-linux.zip)
files: |
autorender-${{ github.ref_name }}-windows.zip
autorender-${{ github.ref_name }}-linux.zip