Skip to content

Commit 98808d8

Browse files
committed
chore: github workflows created
1 parent 3d59ede commit 98808d8

File tree

4 files changed

+56
-36
lines changed

4 files changed

+56
-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: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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
37+
38+
- name: Setup Pages
39+
uses: actions/configure-pages@v4
40+
41+
- name: Upload artifact
42+
uses: actions/upload-pages-artifact@v3
43+
with:
44+
path: "quick-starts/react-quick-start/dist"
45+
46+
deploy:
47+
environment:
48+
name: github-pages
49+
url: ${{ steps.deployment.outputs.page_url }}
50+
runs-on: ubuntu-latest
51+
needs: build
52+
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
53+
steps:
54+
- name: Deploy to GitHub Pages
55+
id: deployment
56+
uses: actions/deploy-pages@v4

.github/workflows/lintcheck.yaml

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

0 commit comments

Comments
 (0)