Skip to content

Commit 191f450

Browse files
committed
chore: github workflows created
1 parent 4f82e2a commit 191f450

File tree

4 files changed

+61
-36
lines changed

4 files changed

+61
-36
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

.github/stale.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

.github/workflows/gh-pages.yaml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [web3dev-version]
6+
pull_request:
7+
branches: [web3dev-version]
8+
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
concurrency:
15+
group: "pages"
16+
cancel-in-progress: false
17+
18+
jobs:
19+
build:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
25+
- name: Setup Node.js
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: "18"
29+
cache: "npm"
30+
cache-dependency-path: "quick-starts/react-quick-start/package-lock.json"
31+
32+
- name: Build React Quick Start
33+
run: |
34+
cd quick-starts/react-quick-start
35+
npm ci
36+
npm run build -- --base=/quick-starts/react-quick-start/
37+
38+
- name: Setup Pages
39+
uses: actions/configure-pages@v4
40+
41+
- name: Create pages structure
42+
run: |
43+
mkdir -p _site/quick-starts/react-quick-start
44+
cp -r quick-starts/react-quick-start/dist/* _site/quick-starts/react-quick-start/
45+
46+
- name: Upload artifact
47+
uses: actions/upload-pages-artifact@v3
48+
with:
49+
path: "_site"
50+
51+
deploy:
52+
environment:
53+
name: github-pages
54+
url: ${{ steps.deployment.outputs.page_url }}
55+
runs-on: ubuntu-latest
56+
needs: build
57+
if: github.ref == 'refs/heads/web3dev-version'
58+
steps:
59+
- name: Deploy to GitHub Pages
60+
id: deployment
61+
uses: actions/deploy-pages@v4

.github/workflows/lintcheck.yaml

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)