-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (46 loc) · 1.11 KB
/
build.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
name: Release
on:
push:
tags:
- "v*.*.*"
workflow_dispatch:
permissions:
contents: write
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Node.js 20
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: yarn install
uses: borales/actions-yarn@v4
with:
cmd: install
- name: yarn build
uses: borales/actions-yarn@v4
with:
cmd: build
- name: Create release folder
run: mkdir -p dist/release
- name: Make zip
uses: thedoctor0/[email protected]
with:
type: zip
directory: dist
exclusions: release
filename: release/time-card-extension.zip
- name: Make tar
uses: thedoctor0/[email protected]
with:
type: tar
directory: dist
exclusions: release
filename: release/time-card-extension.tar.gz
- name: Release
uses: softprops/action-gh-release@v1
with:
files: dist/release/time-card-extension.*