Skip to content

Commit 9e271c1

Browse files
committed
Add deploy action
1 parent 92fae60 commit 9e271c1

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Deploy Index HTML
2+
3+
on:
4+
push:
5+
branches:
6+
- feature/automation
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
# Check out the repository
14+
- name: Checkout code
15+
uses: actions/checkout@v2
16+
17+
# Set up Node.js environment
18+
- name: Set up Node.js
19+
uses: actions/setup-node@v2
20+
with:
21+
node-version: '20' # Specify the Node.js version you need
22+
23+
# Install dependencies (if any)
24+
- name: Install dependencies
25+
run: |
26+
npm install
27+
28+
# Run your Node.js script
29+
- name: Run Node.js script
30+
run: |
31+
node matf.js
32+
33+
# Deploy to a static hosting service
34+
- name: Deploy to GitHub Pages
35+
uses: peaceiris/actions-gh-pages@v3
36+
with:
37+
github_token: ${{ secrets.GITHUB_TOKEN }}
38+
publish_dir: ./

0 commit comments

Comments
 (0)