fix netlify function #51
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: SimplePipeline | |
on: | |
push: | |
branches: [main] | |
jobs: | |
lintTest: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone Repository | |
uses: actions/checkout@v2 | |
- name: Install Dependencies | |
run: | | |
echo "Running Installing Dependencies..." | |
npm install | |
- name: Run Linting | |
run: | | |
echo "Running Linting tests..." | |
npm run lint | |
env: | |
CI: true | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Netlify CLI | |
run: npm install -g netlify-cli | |
- name: Install deps | |
run: npm install | |
- name: Deploy | |
run: npm run deploy:prod | |
env: | |
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | |
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | |