Skip to content

Add files via upload #22

Add files via upload

Add files via upload #22

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Gatsby Publish
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the source branch
push:
branches: [ source ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-20.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm ci
- run: npm run format
- run: npm run test
- run: npm run build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/source' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: master
cname: animysore.com