-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7bb489d
commit e1920e4
Showing
1 changed file
with
42 additions
and
42 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,50 +3,50 @@ name: CI | |
on: | ||
push: | ||
branches: | ||
- master | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: '13.1.0' | ||
- name: Setup Git Config | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Automated Deployment" | ||
- name: Print working directory | ||
run: pwd | ||
- name: Print working directory contents | ||
run: ls -al | ||
- name: Report node version | ||
run: node --version | ||
- name: Report node location | ||
run: which node | ||
- name: Report npm location | ||
run: which npm | ||
- name: Report npm version | ||
run: npm --version | ||
- name: Clean node modules | ||
run: cd web && rm -rf node_modules | ||
- name: Clean gatsby cache | ||
run: cd web && rm -rf .cache | ||
- name: Clean npm cache | ||
run: cd web && npm cache clean --force | ||
- name: npm install | ||
run: cd web && npm install --verbose | ||
- name: npm rebuild | ||
run: cd web && npm rebuild | ||
- name: npm run gatsby-build | ||
run: cd web && npm run gatsby-build | ||
- name: Copy built artifacts to root directory | ||
run: cp -r web/public ./public | ||
- name: Build and Deploy | ||
uses: JamesIves/github-pages-deploy-action@releases/v3 | ||
with: | ||
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} | ||
BRANCH: gh-pages | ||
FOLDER: public | ||
CNAME: cifilter.io | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: "13.1.0" | ||
- name: Setup Git Config | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Automated Deployment" | ||
- name: Print working directory | ||
run: pwd | ||
- name: Print working directory contents | ||
run: ls -al | ||
- name: Report node version | ||
run: node --version | ||
- name: Report node location | ||
run: which node | ||
- name: Report npm location | ||
run: which npm | ||
- name: Report npm version | ||
run: npm --version | ||
- name: Clean node modules | ||
run: cd web && rm -rf node_modules | ||
- name: Clean gatsby cache | ||
run: cd web && rm -rf .cache | ||
- name: Clean npm cache | ||
run: cd web && npm cache clean --force | ||
- name: npm install | ||
run: cd web && npm install --verbose | ||
- name: npm rebuild | ||
run: cd web && npm rebuild | ||
- name: npm run gatsby-build | ||
run: cd web && npm run gatsby-build | ||
- name: Copy built artifacts to root directory | ||
run: cp -r web/public ./public | ||
- name: Build and Deploy | ||
uses: JamesIves/github-pages-deploy-action@releases/v3 | ||
with: | ||
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} | ||
BRANCH: gh-pages | ||
FOLDER: public | ||
CNAME: cifilter.app |