chore: improve gh-pages publishing steps (#9604)

* fix: Fix gulpfiles related to publishing GitHub pages

* chore: remove unused gulp tasks

* feat: allow passing a remote to push gh-pages to

* feat: add ability to skip syncing with main

* feat: add gh workflow to publish ghpages

* chore: update node version

---------

Co-authored-by: Aaron Dodson <aaron.dodson@raspberrypi.org>
This commit is contained in:
Maribeth Moffatt
2026-03-03 15:26:01 -05:00
committed by GitHub
parent a16580ae26
commit 3caee2faf5
5 changed files with 153 additions and 195 deletions
+36
View File
@@ -0,0 +1,36 @@
# Manual workflow to update GitHub Pages from a chosen source branch.
# The gulp updateGithubPages task builds the repo and force-pushes to gh-pages.
name: Update GitHub Pages
on:
workflow_dispatch:
inputs:
source_branch:
description: 'Source branch to build and deploy to GitHub Pages'
required: true
type: string
default: main
permissions:
contents: write
jobs:
update-gh-pages:
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
with:
ref: ${{ inputs.source_branch }}
fetch-depth: 0
- name: Use Node.js
uses: actions/setup-node@v5
with:
node-version: 24.x
- name: Update GitHub Pages
working-directory: ./packages/blockly
run: npm run updateGithubPages:staging