Merge pull request #67 from IvanAmoros/aitor-film-festival #51
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} | |