mirror of
https://github.com/LizardByte/Sunshine.git
synced 2026-08-07 18:36:34 +00:00
7f8d7d8070
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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
|
|
- 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'
|