Publish article #9
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: Publish content before merging | |
on: | |
merge_group: | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- run: npm ci | |
- run: npm run build:utils | |
- name: Set date to new article | |
id: publish | |
run: npm run posts:publish | |
- name: Commit files | |
if: steps.publish.outputs.publish == 'published' | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "backbaseoss" | |
git commit -m "Publish article" -a | |
git push |