bug fix #10
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: Docker Image CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build the Docker image | |
run: docker build . --file Dockerfile --tag latex-resume:latest | |
- name: Run Docker container to generate PDF and PNG | |
run: docker run --rm -v ${{ github.workspace }}/src:/data latex-resume:latest | |
- name: Commit PDF and PNG files (assuming GITHUB_TOKEN is a secret) | |
run: | | |
git config --global user.name 'github-actions' | |
git config --global user.email '[email protected]' | |
git add src/main.pdf src/main.png # Adjust paths if needed | |
git commit -m 'Auto-generated PDF and PNG' | |
git push |