Merge pull request #583 from growilabs/chore/171187-update-org-links-… #445
This file contains hidden or 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
| name: Deploy docs-growi-org | |
| on: | |
| push: | |
| branches: | |
| - master | |
| workflow_dispatch: | |
| inputs: | |
| commit_hash: | |
| description: 'Branch/Tag/Commit (default: master)' | |
| required: false | |
| default: '' | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [22.x] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.event.inputs.commit_hash || 'master' }} | |
| # setup pnpm | |
| - uses: pnpm/action-setup@v4 | |
| # setup Node.js | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'pnpm' | |
| - name: Install dependencies | |
| run: | | |
| pnpm install --frozen-lockfile | |
| - name: Print dependencies | |
| run: | | |
| echo -n "node " && node -v | |
| echo -n "npm " && npm -v | |
| pnpm list --depth=0 | |
| - name: Download and extract GROWI source | |
| run: | | |
| mkdir -p tmp/growi | |
| export GROWI_ARCHIVE_URL=https://github.com/growilabs/growi/archive/master.tar.gz | |
| curl -SL $GROWI_ARCHIVE_URL | tar -xz -C tmp/growi --strip-components 1 | |
| - name: Build VuePress site | |
| run: | | |
| pnpm run api:build | |
| pnpm run docs-growi-org:build | |
| - name: Deploy to GitHub Pages | |
| uses: crazy-max/ghaction-github-pages@v4 | |
| with: | |
| target_branch: gh-pages | |
| build_dir: docs/.vuepress/dist | |
| fqdn: docs.growi.org | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Slack Notification | |
| uses: weseek/ghaction-slack-notification@master | |
| if: failure() | |
| with: | |
| type: ${{ job.status }} | |
| job_name: '*Deploy growi-docs*' | |
| channel: '#ci' | |
| isCompactMode: true | |
| url: ${{ secrets.SLACK_WEBHOOK_URL }} |