-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (29 loc) · 914 Bytes
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Deploy to GitHub Pages
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18.x' # Adjusted to a valid LTS version
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
env:
REACT_APP_API_URL: ${{ secrets.REACT_APP_API_URL }}
REACT_APP_TMDB_KEY: ${{ secrets.REACT_APP_TMDB_KEY }}
REACT_APP_TMDB_TOKEN: ${{ secrets.REACT_APP_TMDB_TOKEN }}
REACT_APP_OMDB_KEY: ${{ secrets.REACT_APP_OMDB_KEY }}
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: build
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}