Skip to content

Commit 7157b0f

Browse files
author
Péter Komlósi
committed
fix: deploy
1 parent 66d9a47 commit 7157b0f

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/push.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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 }}

0 commit comments

Comments
 (0)