build(deps): bump postcss from 8.4.21 to 8.4.31 in /chaos-days (#418) #34
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: Publish Chaos Blog | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- chaos-days/** | |
workflow_dispatch: { } | |
env: | |
# Used by docusaurus publish-site command | |
GIT_USERNAME: camunda-bot | |
REPO: ${{ github.repository }} | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Install Dependencies | |
run: | | |
cd chaos-days | |
npm i | |
- name: Build | |
run: | | |
cd chaos-days | |
npm run build | |
- name: Publish | |
run: | | |
cd chaos-days | |
# 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 ${{ secrets.GITHUB_TOKEN }}" > ~/.netrc | |
# Run docusaurus-publish | |
GIT_USER=$GIT_USERNAME npm run deploy |