-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (34 loc) · 973 Bytes
/
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
name: Release
# Run on every commit tag which begins with "v" (e.g., "v0.1.4")
on:
push:
tags:
- 'v*'
pull_request:
branches:
- main
# Automatically create a GitHub Release, with release details specified (the relevant commits)
jobs:
release:
name: 'Release'
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v3
- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Build
run: |
npm ci
npm run build
- name: Create Zip
if: startsWith(github.ref, 'refs/tags/')
run: zip -r module-league-prm.zip package.json package-lock.json dist/* frontend/*
- uses: 'marvinpinto/action-automatic-releases@latest'
if: startsWith(github.ref, 'refs/tags/')
with:
repo_token: '${{ secrets.GITHUB_TOKEN }}'
prerelease: false
files: |
module-league-prm.zip