-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (34 loc) · 890 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
41
42
name: Release
on:
push:
tags:
- "*"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup NodeJS
uses: actions/setup-node@v2
with:
node-version: "16"
- name: Install dependencies
run: yarn install
- name: Build production artifacts
run: yarn dev production
- name: Get version
id: package
run: echo "VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_ENV
- name: Create Release and Upload Assets
uses: softprops/action-gh-release@v1
with:
token: ${{ secrets.PAT }}
name: ${{ env.VERSION }}
draft: true
prerelease: false
files: |
./main.js
./manifest.json
./styles.css