Skip to content

Merge pull request #53 from Unpackerr/docs/host-readme-logo #116

Merge pull request #53 from Unpackerr/docs/host-readme-logo

Merge pull request #53 from Unpackerr/docs/host-readme-logo #116

Workflow file for this run

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