Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dispatch toitdoc rebuild. #2415

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ on:
required: false
type: boolean
default: false
dispatch-toitdocs:
description: "Dispatch toitdoc rebuild"
required: false
type: boolean
default: false
run-tests:
description: "Run tests"
required: false
Expand Down Expand Up @@ -358,6 +363,26 @@ jobs:
tag: ${{ github.event.release.tag_name }}
overwrite: true

- name: Dispatch toitdoc rebuild - Linux
if: |
runner.os == 'Linux' && matrix.shard == 1 &&
((github.event_name == 'release' && github.repository_owner == 'toitlang') ||
github.event.inputs.dispatch-toitdocs == 'true')
uses: actions/github-script@v7
with:
github-token: ${{ secrets.LEON_REPOSITORY_DISPATCH }}
script: |
await github.rest.actions.createWorkflowDispatch({
owner: 'toitware',
repo: 'web-toitdocs',
workflow_id: 'ci.yml',
ref: 'master',
inputs: {
'deploy': 'true',
'toitdoc-version': '${{ github.event.release.tag_name }}'
},
});

- name: Upload unsigned artifacts - Windows
if: runner.os == 'Windows' && matrix.shard == 1
uses: actions/upload-artifact@v3
Expand Down
Loading