feat: fix content #11
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: Build and Commit PDF and PPTX | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'src/**' | |
pull_request: | |
branches: | |
- main | |
paths: | |
- 'src/**' | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '23' | |
- name: Install dependencies | |
run: npm install | |
- name: Build PDF | |
run: npm run build:pdf | |
- name: Build PPTX | |
run: npm run build:pptx | |
- name: Commit and push changes | |
run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
git add -A . | |
git commit -m "generated" | |
git push origin HEAD:${{ github.head_ref }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |