Interactive docs for reputation mining #202
Workflow file for this run
This file contains 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: ci | |
on: | |
pull_request: | |
push: | |
branches: [main, qa] | |
jobs: | |
checks: | |
if: github.event_name != 'push' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout ποΈ | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
submodules: true | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Install βοΈ | |
run: npm ci | |
- name: Build π | |
run: npm run build-full | |
build-and-delpoy-to-qa: | |
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/qa' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout ποΈ | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
submodules: true | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Install βοΈ | |
run: npm ci | |
- name: Build π | |
run: npm run build-full | |
env: | |
QA: true | |
- name: Deploy to QA π | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
branch: gh-pages | |
folder: build | |
target-folder: next | |
build-and-deploy: | |
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout ποΈ | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
submodules: true | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Install Docusaurus βοΈ | |
run: npm ci | |
- name: Build π | |
run: npm run build-full | |
- name: Deploy to production π | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
branch: gh-pages | |
folder: build | |
clean-exclude: next |