pages-landing-page/.github/workflows/deploy.yaml

42 lines
1010 B
YAML

name: Build & Deploy
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 8
- name: Install Node.js
uses: actions/setup-node@v4
with:
cache: pnpm
node-version: 20
- name: Install dependencies
run: pnpm install
- name: Vite
run: pnpm build
- name: Deploy
uses: addnab/docker-run-action@v3
with:
image: plugins/gh-pages
run: /bin/drone-gh-pages
env:
PLUGIN_USERNAME: oauth2
PLUGIN_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
PLUGIN_TARGET_BRANCH: pages
PLUGIN_PAGES_DIRECTORY: build
PLUGIN_REMOTE_URL: https://git.froth.zone/infrastructure/pages-landing-page
PLUGIN_COPY_CONTENTS: true
PLUGIN_LOG_LEVEL: debug