Skip to content

deploy

deploy #157

Workflow file for this run

---
name: Deploy
on:
push:
branches:
- master
workflow_dispatch: {}
repository_dispatch:
types: [deploy]
jobs:
Deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Cache
uses: actions/cache@v3
id: npm-cache
with:
path: '**/node_modules'
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-
- name: Install
if: steps.npm-cache.outputs.cache-hit != 'true'
run: npm ci
- name: Build
run: npx nuxt generate
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_ENV: production
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
cname: blog.system76.com
github_token: ${{ secrets.RELEASE_TOKEN }}
publish_dir: ./dist