-
Notifications
You must be signed in to change notification settings - Fork 6
44 lines (36 loc) · 863 Bytes
/
build-and-publish.yml
File metadata and controls
44 lines (36 loc) · 863 Bytes
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
name: Build and publish
on:
push:
branches:
- master
paths-ignore:
- '**/*.md'
- '**/*.yml'
workflow_dispatch:
env:
GITHUB_TOKEN: ${{ github.token }}
jobs:
build-and-publish:
runs-on: ubuntu-latest
name: Build and publish
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
- name: Install dependencies
run: yarn
- name: Build
run: yarn build
- name: Zip artifact
run: yarn package
- name: Create release
id: create_release
uses: softprops/action-gh-release@v1
with:
tag_name: v${{ github.run_number }}
files: ./artifacts/release.zip
generate_release_notes: true