Skip to content

Update README.md

Update README.md #52

Workflow file for this run

# push.yml
# Name of workflow
name: Push workflow
# When workflow is triggered
on:
push:
branches:
- dev
- main
# Jobs to carry out
jobs:
deploy:
# Operating system to run job on
runs-on: ubuntu-latest
# Steps in job
steps:
# Get code from repo
- name: Checkout code
uses: actions/checkout@v1
# Install NodeJS
- name: Use Node.js 18.x
uses: actions/setup-node@v1
with:
node-version: 18.x
# Run npm install and build on our code
- run: npm install
- run: npm run build --if-present
# Run Test
# - name: Run tests
# run: npm run test
# Deploy to Netlify using our production secrets
- name: Deploy to netlify
uses: netlify/actions/cli@master
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
with:
args: deploy --dir=dist --prod
secrets: '["NETLIFY_AUTH_TOKEN", "NETLIFY_SITE_ID"]'