-
Notifications
You must be signed in to change notification settings - Fork 4
58 lines (49 loc) · 1.33 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
58
name: Release
# Run on every commit tag which begins with "v" (e.g., "v0.1.4")
on:
push:
tags:
- 'v*'
pull_request:
branches:
- main
jobs:
build:
name: 'Build'
runs-on: 'windows-latest'
steps:
- uses: actions/checkout@v4
- name: Setup NodeJS
uses: actions/setup-node@v4
with:
node-version: 20
- name: install dependencies
run: npm i
- name: Build
run: npm run dist
- name: Upload Files
uses: actions/upload-artifact@v4
with:
name: dist
path: |
dist/League-Observer-Tool-Setup-${{ github.ref_name }}.exe
dist/League-Observer-Tool-Setup-${{ github.ref_name }}.exe.blockmap
dist/latest.yml
Release:
name: Release
needs: [build]
runs-on: 'ubuntu-latest'
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Download Files
uses: actions/download-artifact@v4
with:
name: dist
- uses: 'marvinpinto/action-automatic-releases@latest'
with:
repo_token: '${{ secrets.GITHUB_TOKEN }}'
prerelease: false
files: |
League-Observer-Tool-Setup-${{ github.ref_name }}.exe
League-Observer-Tool-Setup-${{ github.ref_name }}.exe.blockmap
latest.yml