website: re-generate commons #19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ----------------------------------------------------------------------------- | |
# DO NOT EDIT! | |
# Automatically generated from npm-packages-helper/templates/*. | |
# | |
# This file is part of the xPack project (http://xpack.github.io). | |
# Copyright (c) 2021 Liviu Ionescu. All rights reserved. | |
# | |
# Permission to use, copy, modify, and/or distribute this software | |
# for any purpose is hereby granted, under the terms of the MIT license. | |
# | |
# If a copy of the license was not distributed with this file, it can | |
# be obtained from https://opensource.org/licenses/mit/. | |
# | |
# ----------------------------------------------------------------------------- | |
# Simple workflow to trigger the deployment of GitHub Pages in another project | |
name: Trigger Remote GitHub Pages | |
on: | |
# Runs on pushes, if all conditions are met: | |
push: | |
# ... on the website branch ... | |
branches: | |
- 'webpreview' | |
# ... skip tags only ... | |
tags-ignore: | |
- '**' | |
# ... any of these files changes ... | |
paths: | |
- 'website/**' | |
- 'typedoc.json' | |
- '**/tsconfig*.json' | |
- 'src/**/*.ts' | |
- 'README.md' | |
- '.github/workflows/trigger-publish-github-pages-preview.yml' | |
- 'package.json' | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
# Allow one concurrent deployment | |
concurrency: | |
group: "pages" | |
cancel-in-progress: true | |
jobs: | |
# Dispatch the event to the destination project. | |
dispatch: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Trigger | |
run: | | |
curl --verbose --location --fail-early --fail-with-body --include \ | |
--header "Authorization: token ${{secrets.DISPATCH_TOKEN}}" \ | |
--header "Content-Type: application/json" \ | |
--header "Accept: application/vnd.github.v3+json" \ | |
--data '{"ref":"master", "inputs":{"repository":"xpack/xpack.github.io", "ref":"webpreview"}}' \ | |
https://api.github.com/repos/xpack/web-preview/actions/workflows/publish-github-pages-from-remote.yml/dispatches |