-
Notifications
You must be signed in to change notification settings - Fork 4
42 lines (40 loc) · 1.2 KB
/
deploy.yml
File metadata and controls
42 lines (40 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Deploy to GitHub Pages
on:
push:
branches: [main]
workflow_dispatch:
inputs:
unpackerr_branch:
description: "The branch to read unpackerr's definitions.yml from"
required: true
default: "main"
branch:
description: "The local branch to deploy from"
required: true
default: "main"
jobs:
deploy:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
ref: ${{ inputs.branch || 'main' }}
- uses: actions/setup-node@v6
with:
node-version: latest
cache: yarn
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Build website
env:
UNPACKERR_BRANCH: ${{ inputs.unpackerr_branch || 'main' }}
run: yarn build
# Popular action to deploy to GitHub Pages:
# Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
# Build output to publish to the `gh-pages` branch:
publish_dir: build