Skip to content

Merge pull request #939 from camunda/dependabot/maven/version.log4j-2… #408

Merge pull request #939 from camunda/dependabot/maven/version.log4j-2…

Merge pull request #939 from camunda/dependabot/maven/version.log4j-2… #408

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 "[email protected]"
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