Skip to content

Commit

Permalink
next version
Browse files Browse the repository at this point in the history
  • Loading branch information
mathebox committed Jan 26, 2025
1 parent 1c1c233 commit 72cd061
Showing 1 changed file with 33 additions and 48 deletions.
81 changes: 33 additions & 48 deletions .github/workflows/build-pdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,16 @@ on:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# contents: read
# pages: write
# id-token: write
contents: 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
# # 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:
Expand All @@ -25,57 +26,41 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
id: pages
uses: actions/configure-pages@v5
# - name: Setup Pages
# id: pages
# uses: actions/configure-pages@v5
- name: Build PDF
run: |
latexmk -pdf -cd ./src/maxbothe-cv.tex
ls -R
run: latexmk -pdf -cd ./src/maxbothe-cv.tex
- 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:
name: github-pages
path: ./dist
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
# 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: .

# - name: Deploy to GitHub Pages
# id: deployment
# uses: actions/deploy-pages@v4
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: github-pages
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: .
# - name: Deploy
# uses: JamesIves/github-pages-deploy-action@v4
# with:
# folder: .

0 comments on commit 72cd061

Please sign in to comment.