File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed
Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change 1+ # Simple workflow for deploying static content to GitHub Pages
2+ name : Deploy to GitHub Pages
3+
4+ on :
5+ push :
6+ branches : [ main ]
7+
8+ permissions :
9+ contents : write
10+ pages : write
11+ id-token : write
12+ pull-requests : write
13+ repository-projects : write
14+
15+ jobs :
16+ build :
17+ runs-on : ubuntu-latest
18+
19+ strategy :
20+ matrix :
21+ node-version : [19]
22+
23+ steps :
24+ - uses : actions/checkout@v3
25+
26+ - name : Use Node.js ${{ matrix.node-version }}
27+ uses : actions/setup-node@v3
28+ with :
29+ node-version : ${{ matrix.node-version }}
30+
31+ - name : Build
32+ run : |
33+ git config --global user.email "webdevnerdstuff@gmail.com"
34+ git config --global user.name "WebDevNerdStuff"
35+ mkdir docs
36+ npm install --g gh-pages
37+ npm i
38+ npm run build:docs
39+ git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
40+ npm run deploy -u "github-actions-bot <support+actions@github.com>"
41+ env :
42+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments