Skip to content

Merge pull request #50 from Virenbar/renovate/nuxt #212

Merge pull request #50 from Virenbar/renovate/nuxt

Merge pull request #50 from Virenbar/renovate/nuxt #212

Workflow file for this run

name: Build Artifact
on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_call:
jobs:
build:
name: Build
runs-on: ubuntu-latest
env:
NUXT_APP_BASE_URL: /discord-emoji-export/
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: "yarn"
- name: Set variables
run: |
echo "NUXT_PUBLIC_BRANCH=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> "$GITHUB_ENV"
echo "NUXT_PUBLIC_HASH=${GITHUB_SHA}" >> "$GITHUB_ENV"
- name: Build website
run: |
yarn install --immutable --immutable-cache --check-cache
yarn generate
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: .output/public