Skip to content

Merge pull request #77 from Etlas-SCU/favorites #70

Merge pull request #77 from Etlas-SCU/favorites

Merge pull request #77 from Etlas-SCU/favorites #70

name: Deploy to GitHub Pages
on:
push:
branches:
- master
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Set CI environment variable to false
run: echo "CI=false" >> $GITHUB_ENV
- name: Checkout code
uses: actions/checkout@v2
- name: Configure Git
run: |
git config --global user.name "Waelahmed99"
git config --global user.email "[email protected]"
git config --global credential.helper store
git config --global user.password "${{ secrets.GH_PAGES_TOKEN }}"
- name: Install dependencies
run: |
npm install --force
- name: Build
run: |
npm run-script build
env:
REACT_APP_GOOGLE_CLIENT_ID: ${{ secrets.REACT_APP_GOOGLE_CLIENT_ID }}
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages # The branch the action should deploy to.
folder: build # The folder the action should deploy.