main.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. paths:
  9. - 'markdown/**'
  10. # Allows you to run this workflow manually from the Actions tab
  11. workflow_dispatch:
  12. jobs:
  13. build-resume:
  14. runs-on: ubuntu-latest
  15. services:
  16. buildhost:
  17. image: ghcr.io/mszep/pandoc_resume/resume_builder:latest
  18. credentials:
  19. username: ${{ github.actor }}
  20. password: ${{ secrets.GITHUB_TOKEN }}
  21. options: -v $GITHUB_WORKSPACE:$GITHUB_WORKSPACE
  22. steps:
  23. # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
  24. - uses: actions/checkout@v2
  25. - name: Test directory contents
  26. run: 'ls -al'
  27. - name: Build resume
  28. run: 'ssh buildhost pwd #make'
  29. - name: Upload a Build Artifact
  30. uses: actions/upload-artifact@v2.2.3
  31. with:
  32. # Artifact name
  33. name: Resume PDF # optional, default is artifact
  34. # A file, directory or wildcard pattern that describes what to upload
  35. path: output/*.pdf