Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

environment variables with react and github pages

name: Deploy to GitHub Pages
    on:
      push:
        branches:
          - master
    jobs:
      build-and-deploy:
        runs-on: ubuntu-latest
        steps:
        - name: Checkout
          uses: actions/checkout@v1

        - name: Build
          run: |
            npm install
            npm run-script build
          env:
            REACT_APP_INSTAGRAM_ACCESS_TOKEN: ${{ secrets.REACT_APP_INSTAGRAM_ACCESS_TOKEN }}
            REACT_APP_SMTP_SECURE_TOKEN: ${{ secrets.REACT_APP_SMTP_SECURE_TOKEN }}

        - name: Deploy
          uses: JamesIves/github-pages-deploy-action@releases/v3
          with:
            GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN_KEY }}
            BRANCH: gh-pages
            FOLDER: dist
Comment

PREVIOUS NEXT
Code Example
Shell :: windows kill process 
Shell :: nuxt .env file not load 
Shell :: how to stop cron job 
Shell :: gitlab ee version check 
Shell :: instalacion de angular cli 
Shell :: how to tar and gzip a file in linux 
Shell :: adding remote origin git 
Shell :: install deb file in ubuntu 
Shell :: pesquisar codigo commit 
Shell :: export import all vscode extensions 
Shell :: how to exit git rebase 
Shell :: ubuntu install lib usb 
Shell :: video editor linux 
Shell :: git remote add local folder 
Shell :: epson l220 ubuntu driver 
Shell :: git download specific commit 
Shell :: remove git from project in windows 
Shell :: powershell to string 
Shell :: bash for loop string 
Shell :: find command 
Shell :: bash scripts options without arg 
Shell :: how to create a text file in batch 
Shell :: read last line file bash 
Shell :: get ip of raspberry pi 
Shell :: install zip raspberry pi 
Shell :: how to create tag in git 
Shell :: push a new branch 
Shell :: how to set execute permission in linux 
Shell :: find file in linux with regex 
Shell :: git change personal token to login and passowrd 
ADD CONTENT
Topic
Content
Source link
Name
6+5 =