chore: bump actions/configure-pages from 3.0.6 to 4.0.0 (#21) #11
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: CI | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: [main] | |
jobs: | |
compile: | |
name: Compile | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Compile document | |
uses: xu-cheng/latex-action@v3 | |
with: | |
root_file: main.tex | |
- name: Rename document | |
run: mkdir dist && mv main.pdf dist/buku-ta.pdf | |
- name: Upload Pages artifact | |
uses: actions/[email protected] | |
with: | |
path: dist | |
deploy: | |
name: Deploy | |
if: github.event_name != 'pull_request' | |
needs: compile | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
concurrency: | |
group: pages | |
cancel-in-progress: false | |
steps: | |
- name: Configure Pages | |
uses: actions/[email protected] | |
- name: Deploy to Pages | |
id: deployment | |
uses: actions/[email protected] |