Skip to content

chore: update CV (again) 🍆 #22

chore: update CV (again) 🍆

chore: update CV (again) 🍆 #22

Workflow file for this run

name: deployment
on:
push:
branches:
- main
- master
# pull_request:
# branches:
# - main
# - master
jobs:
deployment:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [14]
steps:
- name: Checkout 🛎
uses: actions/checkout@master
- name: Setup node env 🏗
uses: actions/[email protected]
with:
node-version: ${{ matrix.node }}
- name: Get yarn cache directory path 🛠
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Cache node_modules 📦
uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies 👨🏻‍💻
run: yarn
- name: Run linter 👀
run: yarn lint
- name: Generate 🖨️
run: yarn run generate
env:
NUXT_ENV_GOOGLE_ANALYTICS_ID: ${{ secrets.NUXT_ENV_GOOGLE_ANALYTICS_ID }}
NUXT_ENV_BASE_URL: ${{ secrets.NUXT_ENV_BASE_URL }}
- name: Deploy 🚀
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist