-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (37 loc) · 930 Bytes
/
Copy pathrelease.yml
File metadata and controls
45 lines (37 loc) · 930 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
45
name: Release
on:
push:
tags:
- v*
workflow_dispatch: {}
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 22
- name: Cache npm
uses: actions/cache@v5
with:
path: ~/.npm
key: OneDecoder-${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
OneDecoder-${{ runner.os }}-node-
- name: Build
run: |
npm clean-install
npm run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v4
with:
path: ./dist/one-decoder/browser
- name: Deploy to Github-Pages
uses: actions/deploy-pages@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}