diff --git a/.github/workflows/build-pdf.yml b/.github/workflows/build-pdf.yml new file mode 100644 index 0000000..7a3c651 --- /dev/null +++ b/.github/workflows/build-pdf.yml @@ -0,0 +1,81 @@ +name: Build PDF + +on: + push: + branches: + - main + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. +# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + build: + runs-on: ubuntu-latest + container: + image: ghcr.io/moderncv/debian-texlive-docker:main + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Pages + id: pages + uses: actions/configure-pages@v5 + - name: Build PDF + run: | + latexmk -pdf -cd ./src/maxbothe-cv.tex + ls -R + # - name: Copy PDF + # run: | + # ls -R + # mkdir dist + # cp ./src/maxbothe-cv.pdf ./dist/maxbothe-cv.pdf + # ls -R + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: ./src/maxbothe-cv.pdf + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 + # deploy: + # runs-on: ubuntu-latest + # needs: build + # steps: + # # - name: Setup Pages + # # uses: actions/configure-pages@v5 + # - name: Download artifact + # uses: actions/download-artifact@v4 + # with: + # name: maxbothe-cv.pdf + # # - name: Upload artifact + # # uses: actions/upload-pages-artifact@v3 + # # with: + # # # Upload entire repository + # # path: '.' + # # - name: Deploy to GitHub Pages + # # id: deployment + # # uses: actions/deploy-pages@v4 + # - name: Bypass Jekyll + # run: touch .nojekyll + # - name: Deploy + # uses: peaceiris/actions-gh-pages@v4 + # with: + # github_token: ${{ secrets.GITHUB_TOKEN }} + # publish_dir: . + + diff --git a/maxbothe-cv.pdf b/maxbothe-cv.pdf deleted file mode 120000 index 66fde58..0000000 --- a/maxbothe-cv.pdf +++ /dev/null @@ -1 +0,0 @@ -src/maxbothe-cv-en.pdf \ No newline at end of file diff --git a/src/maxbothe-cv-en.pdf b/src/maxbothe-cv-en.pdf deleted file mode 100644 index f256049..0000000 Binary files a/src/maxbothe-cv-en.pdf and /dev/null differ diff --git a/src/maxbothe-cv-en.tex b/src/maxbothe-cv.tex similarity index 100% rename from src/maxbothe-cv-en.tex rename to src/maxbothe-cv.tex