Update deploy.yml #15
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: Gatsby Deploy | |
on: | |
push: | |
branches: compress | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
jobs: | |
compress: | |
runs-on: ubuntu-latest | |
steps: | |
- name: GitHub Config | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "CSE3000-research-project" | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: | | |
npm install | |
- name: Compress | |
run: | | |
pip3 install pillow | |
npm run compress | |
# build: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: GitHub Config | |
# run: | | |
# git config --global user.email "[email protected]" | |
# git config --global user.name "CSE3000-research-project" | |
# - name: Checkout | |
# uses: actions/checkout@v2 | |
# - name: Install dependencies | |
# run: | | |
# npm install | |
# - name: Deploy | |
# run: npm run deploy:ci |