Skip to content

Bump actions/download-artifact from 3 to 4 #132

Bump actions/download-artifact from 3 to 4

Bump actions/download-artifact from 3 to 4 #132

Workflow file for this run

name: deploy-website
on:
pull_request:
push:
branches:
- main
jobs:
build:
name: build-website
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
lfs: true
- uses: actions/setup-node@v4
with:
node-version: '18'
cache: yarn
cache-dependency-path: |
yarn.lock
- name: Install dependencies
run: yarn install --frozen-lockfile
- uses: pre-commit/[email protected]
- name: Build the website
run: yarn generate
- uses: actions/upload-artifact@v3
name: Upload build artifacts
with:
name: website
path: |
.output/public
deploy:
needs: build
name: deploy-website
if: success() && github.ref == 'refs/heads/main' # only deploy main
runs-on: ubuntu-22.04
steps:
- name: Download website
uses: actions/download-artifact@v4
with:
name: website
- name: Update gh-pages branch
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: .
cname: gencaster.org