-
-
Notifications
You must be signed in to change notification settings - Fork 7
24 lines (22 loc) · 596 Bytes
/
Copy pathdeploy.yml
File metadata and controls
24 lines (22 loc) · 596 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
name: GitHub Pages
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Pages
uses: actions/configure-pages@v1
- name: Build and deploy
run: |
mkdir public
cp -r * public/
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add .
git commit -m "Deploy to GitHub Pages"
git push origin main:gh-pages