Skip to content

Merge pull request #862 from camunda/dependabot/maven/org.apache.mave… #360

Merge pull request #862 from camunda/dependabot/maven/org.apache.mave…

Merge pull request #862 from camunda/dependabot/maven/org.apache.mave… #360

Workflow file for this run

name: publish-docs
on:
push:
branches: [main]
env:
# Used by docusaurus publish-site command
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
GIT_USERNAME: camunda-bot
REPO: ${{ github.repository }}
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Install Dependencies
run: |
cd docs
npm ci
- name: Build
run: |
cd docs
npm run build
- name: Publish
run: |
cd docs
# Configure git client
echo "Git repo - $REPO"
echo "Git user - $GIT_USERNAME"
echo "Event name - ${{github.event_name }}"
git config --global user.email "$GIT_USERNAME@users.noreply.github.com"
git config --global user.name "$GIT_USERNAME"
echo "machine github.com login $GIT_USERNAME password $GITHUB_TOKEN" > ~/.netrc
# Run docusaurus-publish
GIT_USER=$GIT_USERNAME npm run deploy