mirror of
https://github.com/LizardByte/Sunshine.git
synced 2026-08-07 10:20:46 +00:00
a254ce3d0e
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
---
|
|
name: Build GH-Pages
|
|
permissions: {}
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- master
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: "${{ github.workflow }}-${{ github.ref }}"
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
prep:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
|
|
- name: Upload artifact
|
|
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
|
with:
|
|
name: prep
|
|
path: gh-pages-template/
|
|
if-no-files-found: error
|
|
include-hidden-files: true
|
|
retention-days: 1
|
|
|
|
call-jekyll-build:
|
|
needs: prep
|
|
permissions:
|
|
contents: read
|
|
uses: LizardByte/LizardByte.github.io/.github/workflows/jekyll-build.yml@master
|
|
secrets:
|
|
GH_BOT_EMAIL: ${{ secrets.GH_BOT_EMAIL }}
|
|
GH_BOT_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
|
|
with:
|
|
clean_gh_pages: true
|
|
gh_bot_name: ${{ vars.GH_BOT_NAME }}
|
|
site_artifact: 'prep'
|
|
target_branch: 'gh-pages'
|