forked from avillar/bblocks-viewer
-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (36 loc) · 882 Bytes
/
create-dist.yml
File metadata and controls
41 lines (36 loc) · 882 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
name: Create dist
on:
push:
branches:
- master
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
concurrency:
group: dist
cancel-in-progress: true
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn
- name: Install dependencies and build
run: |
npm install -g yarn
yarn install
VITE_DYNAMIC_BASE_URL=true yarn build
cp dist/index.html dist/404.html
- name: Push to dist
uses: s0/git-publish-subdir-action@v2.6.0
env:
REPO: self
BRANCH: dist
FOLDER: dist
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}