main.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # This is a basic workflow to help you get started with Actions
  2. name: build-resume
  3. # Controls when the action will run.
  4. on:
  5. # Triggers the workflow on push or pull request events but only for the master branch
  6. push:
  7. branches: [ master ]
  8. # Allows you to run this workflow manually from the Actions tab
  9. workflow_dispatch:
  10. jobs:
  11. build:
  12. runs-on: ubuntu-latest
  13. container:
  14. image: docker.pkg.github.com/mszep/pandoc_resume/resume_builder:latest
  15. credentials:
  16. username: ${{ github.actor }}
  17. password: ${{ secrets.GITHUB_TOKEN }}
  18. steps:
  19. # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
  20. - uses: actions/checkout@v2
  21. - name: Test directory contents
  22. run: ls -al
  23. - name: Build resume
  24. run: make
  25. - name: Upload a Build Artifact
  26. uses: actions/upload-artifact@v2.2.3
  27. with:
  28. # Artifact name
  29. name: Resume PDF # optional, default is artifact
  30. # A file, directory or wildcard pattern that describes what to upload
  31. path: output/*.pdf