Skip to content

Commit

Permalink
re-generate commons
Browse files Browse the repository at this point in the history
  • Loading branch information
ilg-ul committed Jan 6, 2025
1 parent b497618 commit 937c256
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 2 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# These are supported funding model platforms

github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: ilegeul # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
polar: # Replace with a single Polar username
buy_me_a_coffee: # Replace with a single Buy Me a Coffee username
thanks_dev: # Replace with a single thanks.dev username
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
53 changes: 53 additions & 0 deletions .github/workflows/trigger-publish-github-pages-preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# DO NOT EDIT!
# Automatically generated from npm-packages-helper/templates

# 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:
- 'development'
# ... 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":{}}' \
https://api.github.com/repos/xpack/web-preview/actions/workflows/publish-github-pages-from-remote.yml/dispatches
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
"config": {
"isOrganizationWeb": "true",
"isNotNpmModule": "true",
"skipTests": "true"
"skipTests": "true",
"hasTriggerPublishPreview": "true"
},
"engines": {
"node": " >=18.0.0"
Expand Down
1 change: 0 additions & 1 deletion website/docs/developer/_common/_get-project-sources.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ The project uses multiple branches:

- `master`, with the latest stable version (default)
- `development`, with the current development version
- `website`, with the current content of the website; pushes to this branch automatically trigger publishes the main website

To clone the stable branch (`master`), run the following commands in a
terminal (on Windows use the Git Bash console):
Expand Down

0 comments on commit 937c256

Please sign in to comment.