Skip to content

Commit

Permalink
Merge pull request #339 from hackforla/DeployFix
Browse files Browse the repository at this point in the history
Attempting at fixing deploy step for prod
  • Loading branch information
sellnat77 authored Mar 2, 2020
2 parents 6288eed + dbfe965 commit a4c6570
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/Continuous_Delivery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,27 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Rebuild sass
run: npm rebuild node-sass
- name: Install Packages
run: npm install
- name: Build project
run: npm run build
env:
REACT_APP_MAPBOX_TOKEN: ${{ secrets.MAPBOX_TOKEN }}
DB_URL: ${{ secrets.DB_URL }}
- name: Run Tests
run: export CI=true && npm run test -- --coverage
env:
MAPBOX_TOKEN: ${{ secrets.MAPBOX_TOKEN }}
REACT_APP_MAPBOX_TOKEN: ${{ secrets.MAPBOX_TOKEN }}
DB_URL: ${{ secrets.DB_URL }}
# DISABLING DEPLOYMENT TO PRESERVE "PRODUCTION"
- name: Deploy to GH pages
uses: JamesIves/github-pages-deploy-action@master
env:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
REACT_APP_MAPBOX_TOKEN: ${{ secrets.MAPBOX_TOKEN }}
DB_URL: ${{ secrets.DB_URL }}
BASE_BRANCH: master # The branch the action should deploy from.
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: dist # The folder the action should deploy.
BUILD_SCRIPT: echo REACT_APP_MAPBOX_TOKEN=${{secrets.MAPBOX_TOKEN}} && echo DB_URL=${{secrets.DB_URL}} >> .env && npm rebuild node-sass && npm install && npm run-script build # The build script the action should run prior to deploying.

0 comments on commit a4c6570

Please sign in to comment.