-
Notifications
You must be signed in to change notification settings - Fork 4
50 lines (48 loc) · 1.59 KB
/
Copy pathdeploy.yml
File metadata and controls
50 lines (48 loc) · 1.59 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
43
44
45
46
47
48
49
50
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
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ inputs.branch || 'main' }}
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version: stable
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 24
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@84c30a85c19949d7eee79c4ff27748b70285e453 # v4.1.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
# Build output to publish to the `gh-pages` branch:
publish_dir: build
cname: unpackerr.zip