-
Notifications
You must be signed in to change notification settings - Fork 1
65 lines (51 loc) · 1.84 KB
/
CD.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
58
59
60
61
62
63
64
65
name: Release CD
on:
push:
tags:
- "*"
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- name: Format check
run: deno fmt --check
- name: Lint
run: deno lint
- name: Type check
run: deno task check:types
#- name: Test
# run: deno test -A
- name: Compile
run: |
deno task compile
- name: Pack VPKs
run: |
deno task pack
- name: Create archives
run: |
7z a cmm-${{ github.ref_name }}-linux.zip ${{ github.workspace }}/src/bin/cmm
7z a cmm-${{ github.ref_name }}-windows.zip ${{ github.workspace }}/src/bin/cmm.exe
pushd mods/portal_stories
7z a cmm-${{ github.ref_name }}-portal_stories.zip -x'!resource' -x'!scripts'
pushd
- name: Create release
uses: softprops/action-gh-release@v1
with:
name: CMM ${{ github.ref_name }}
prerelease: ${{ contains(github.ref, 'pre') }}
body: |
Challenge Mode Mod Installer.
Windows: [Download cmm-${{ github.ref_name }}-windows.zip](https://github.com/NeKzor/cmm/releases/download/${{ github.ref_name }}/cmm-${{ github.ref_name }}-windows.zip)
Linux: [Download cmm-${{ github.ref_name }}-linux.zip](https://github.com/NeKzor/cmm/releases/download/${{ github.ref_name }}/cmm-${{ github.ref_name }}-linux.zip)
Usage:
- Run the installer from anywhere. Required files will be dowloaded automatically.
files: |
cmm-${{ github.ref_name }}-windows.zip
cmm-${{ github.ref_name }}-linux.zip
mods/portal_stories/cmm-${{ github.ref_name }}-portal_stories.zip