File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ # This workflow is triggered on pushes to the master branch.
2+ name : gh-pages
3+
4+ on :
5+ push :
6+ branches :
7+ - master
8+
9+ jobs :
10+ build :
11+ name : push-gh-pages
12+ runs-on : ubuntu-latest
13+ steps :
14+ - name : Checkout source code
15+ uses : actions/checkout@v2
16+ - name : Setup Node.js
17+ uses : actions/setup-node@v2
18+ with :
19+ node-version : ' 16'
20+ - name : Install dependencies
21+ run : npm install
22+ - name : Build
23+ run : npm run build
24+ env :
25+ VITE_REDDIT_API_CLIENT_ID : ${{ secrets.VITE_REDDIT_API_CLIENT_ID }}
26+ VITE_REDDIT_API_CLIENT_SECRET : ${{ secrets.VITE_REDDIT_API_CLIENT_SECRET }}
27+ VITE_PUBLIC_URL : ${{ secrets.VITE_PUBLIC_URL }}
28+ - name : Publish gh-pages
29+ uses : crazy-max/ghaction-github-pages@v2
30+ with :
31+ target_branch : gh-pages
32+ build_dir : build
33+ env :
34+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments