Skip to content

Commit 40fa93b

Browse files
committed
Delete GitHub Pages artifacts after usage.
1 parent 4eaa72e commit 40fa93b

2 files changed

Lines changed: 23 additions & 4 deletions

File tree

โ€Ž.github/workflows/LaTeXDocumentation.ymlโ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

โ€Ž.github/workflows/PublishToGitHubPages.ymlโ€Ž

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,19 @@ on:
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

5358
jobs:
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 }}

0 commit comments

Comments
ย (0)