[ENHANCEMENT] [MER-4012] first access to a large course real chem has… #1005
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: Documentation | |
on: | |
push: | |
branches: | |
- master | |
# manually trigger a package build from the Actions tab | |
workflow_dispatch: | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
# only deploy docs if the workflow is running on the master branch | |
if: github.ref == 'refs/heads/master' | |
steps: | |
- name: 🛎️ Checkout | |
uses: actions/checkout@v2 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly. | |
with: | |
persist-credentials: false | |
- name: 🔧 Setup | |
uses: actions/setup-node@v1 | |
with: | |
node-version: "16.14.2" | |
- name: 🔧 Configure | |
run: cp oli.example.env oli.env | |
- name: 🧪 Setup Elixir | |
uses: erlef/setup-elixir@v1 | |
with: | |
elixir-version: 1.17.2 # Define the elixir version [required] | |
otp-version: 27.0.1 # Define the OTP version [required] | |
- name: ⬇️ Install Elixir Dependencies | |
run: mix deps.get | |
- name: 🔨📦 Build Dependencies | |
run: mix deps.compile | |
- name: Install node_module dependencies 📦 | |
run: npm install -g yarn && yarn --cwd assets | |
- name: Build client-side API markdown docs | |
run: yarn --cwd assets run sdk-docs | |
- name: 🔨📄 Build Docs | |
run: mix docs | |
- name: 🔨📖 Build client-side storybook docs | |
run: yarn --cwd assets run storybook:build | |
- name: 🚀 Deploy Docs | |
uses: JamesIves/github-pages-deploy-action@releases/v3 | |
with: | |
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} | |
BRANCH: gh-pages # The branch the action should deploy to. | |
FOLDER: doc # The folder the action should deploy. |