Skip to content

A platform for community discussion. Free, open, simple.

DEV: removes github page documentation page generation (#20268)

Joffrey JAFFEUXa5e45d90fe5e
diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml
deleted file mode 100644
index eface1eba7f..00000000000
--- a/.github/workflows/documentation.yml
+++ /dev/null
@@ -1,81 +0,0 @@
-name: Documentation
-
-on:
- pull_request:
- push:
- branches:
- - main
-
-permissions:
- contents: write
-
-jobs:
- build:
- if: "!(github.event_name == 'push' && github.repository == 'discourse/discourse-private-mirror')"
- name: run
- runs-on: ubuntu-latest
- container: discourse/discourse_test:slim
- timeout-minutes: 30
-
- steps:
- - uses: actions/checkout@v3
- with:
- fetch-depth: 1
-
- - name: Setup Git
- run: |
- git config --global user.email "[email protected]"
- git config --global user.name "Discourse CI"
-
- - name: Bundler cache
- uses: actions/cache@v3
- with:
- path: vendor/bundle
- key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
- restore-keys: |
- ${{ runner.os }}-gem-
-
- - name: Setup gems
- run: |
- gem install bundler --conservative -v $(awk '/BUNDLED WITH/ { getline; gsub(/ /,""); print $0 }' Gemfile.lock)
- bundle config --local path vendor/bundle
- bundle config --local deployment true
- bundle install --jobs 4
- bundle clean
-
- - name: Get yarn cache directory
- id: yarn-cache-dir
- run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
-
- - name: Yarn cache
- uses: actions/cache@v3
- id: yarn-cache
- with:
- path: ${{ steps.yarn-cache-dir.outputs.dir }}
- key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
- restore-keys: |
- ${{ runner.os }}-yarn-
-
- - name: Yarn install
- run: yarn install
-
- - name: Check documentation
- run: |
- LOAD_PLUGINS=1 bin/rake documentation
-
- if [ ! -z "$(git status --porcelain documentation/)" ]; then
- echo "Documentation is not up to date. To resolve, run:"
- echo " LOAD_PLUGINS=1 bin/rake documentation"
- echo
- echo "Or manually apply the diff printed below:"
- echo "---------------------------------------------"
- git -c color.ui=always diff documentation/
- exit 1
- fi
- timeout-minutes: 30
-
- - name: Deploy documentation to github pages
- uses: peaceiris/actions-gh-pages@v3
- with:
- github_token: ${{ secrets.GITHUB_TOKEN }}
- publish_dir: ./documentation