forked from shoelace-style/shoelace
-
Notifications
You must be signed in to change notification settings - Fork 4
55 lines (47 loc) · 1.34 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
# This workflow will create a GitHub release every time a tag is pushed
name: Create GitHub Release
on:
push:
tags:
- "v0.*"
- "v1.*"
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 16.x ]
# , See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npx playwright install-deps
- run: npm ci
- run: npm run build
- uses: actions/upload-artifact@master
with:
name: buildfiles
path: ${{ github.workspace }}/dist
release:
runs-on: ubuntu-latest
needs: [build]
steps:
- name: Fetch build
uses: actions/download-artifact@master
with:
name: buildfiles
path: ${{ github.workspace }}/dist
- name: archive
run: cd $GITHUB_WORKSPACE/dist && zip shoelace.zip -r ./*
- name: create release
uses: "marvinpinto/action-automatic-releases@v1.2.1"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: dist/shoelace.zip