File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -78,13 +78,13 @@ jobs:
7878 path : latex
7979 investigate : ' true'
8080
81- - name : Update
81+ - name : โ๏ธ Update
8282 run : |
8383 sudo miktex --admin packages update-package-database
8484 sudo miktex --admin packages update
8585 sudo initexmf --admin --update-fndb
8686
87- - name : Build LaTeX document using 'pytooling/miktex:sphinx'
87+ - name : ๐ Build LaTeX document using 'pytooling/miktex:sphinx'
8888 if : inputs.pdf_artifact != ''
8989 run : |
9090 set -o pipefail
Original file line number Diff line number Diff line change 4444 required : false
4545 default : ' '
4646 type : string
47+ pages :
48+ description : ' Name of the GitHub Pages artifact.'
49+ required : false
50+ default : ' github-pages'
51+ type : string
4752
4853 outputs :
4954 github_pages_url :
5055 description : " URL to GitHub Pages."
51- value : ${{ jobs.PrepareGitHubPages .outputs.github_pages_url }}
56+ value : ${{ jobs.GitHubPages .outputs.github_pages_url }}
5257
5358jobs :
54- PrepareGitHubPages :
59+ GitHubPages :
5560 name : ๐ Merge multiple contents for publishing
5661 runs-on : " ubuntu-${{ inputs.ubuntu_image_version }}"
5762 permissions :
@@ -83,13 +88,27 @@ jobs:
8388 name : ${{ inputs.typing }}
8489 path : public/typing
8590
91+ - name : ๐๏ธ Delete GitHub Pages artifact
92+ uses : geekyeggo/delete-artifact@v6
93+ with :
94+ name : ${{ inputs.pages }}
95+
8696 - name : ๐ Upload static files as artifact
8797 if : github.event_name != 'pull_request'
8898 uses : actions/upload-pages-artifact@v4
8999 with :
100+ name : ${{ inputs.pages }}
90101 path : public/
91102
92103 - name : ๐ Deploy to GitHub Pages
93104 id : deployment
94105 if : github.event_name != 'pull_request'
95106 uses : actions/deploy-pages@v4
107+ with :
108+ artifact_name : ${{ inputs.pages }}
109+
110+ - name : ๐๏ธ Delete GitHub Pages artifact
111+ uses : geekyeggo/delete-artifact@v6
112+ if : github.event_name != 'pull_request'
113+ with :
114+ name : ${{ inputs.pages }}
You canโt perform that action at this time.
0 commit comments