mirror of
https://github.com/matrix-org/matrix-hookshot.git
synced 2025-03-10 13:17:08 +00:00

* Ensure connection state always explicitly states all keys, even if some are undefined. * changelog * Fix type * fix test types * Add support for E2E testing * Add CI job for e2e test * Ensure integration test only runs when regular tests complete * Add homerunner image * Disallow concurrent runs * Add concurrency to other expensive steps * changelog * Fix mq test * Cache rust deps * Drop only * Use a shared key
45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
name: Build docs
|
|
|
|
on:
|
|
release:
|
|
types: [published]
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Use Node.js
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version-file: .node-version
|
|
|
|
# We want to install matrix-appservice-bridge, which we depend on.
|
|
- run: yarn --ignore-scripts
|
|
|
|
- name: Get release tag
|
|
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
|
|
|
- name: Set up mdBook
|
|
uses: peaceiris/actions-mdbook@v1
|
|
with:
|
|
mdbook-version: '0.4.11'
|
|
|
|
- name: Set version of docs
|
|
run: echo 'window.HOOKSHOT_VERSION = "${{ env.RELEASE_VERSION }}";' > ./docs/_site/version.js
|
|
|
|
- run: mdbook build
|
|
|
|
- name: Deploy latest
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
keep_files: true
|
|
publish_dir: ./book
|
|
destination_dir: ./${{ env.RELEASE_VERSION }}
|