Skip to content

Commit 9f097bb

Browse files
committed
Use default fetch depth in GitHub Actions
1 parent c45ddd5 commit 9f097bb

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

.github/workflows/main.yaml

+19-5
Original file line numberDiff line numberDiff line change
@@ -15,44 +15,58 @@ concurrency:
1515
jobs:
1616

1717
'build-job':
18+
1819
runs-on: 'ubuntu-22.04'
20+
1921
steps:
22+
2023
- name: "Install apt packages"
2124
run: |
2225
sudo apt-get --assume-yes --quiet update
2326
sudo apt-get --assume-yes --quiet install --no-install-recommends graphviz latexmk tex-gyre texlive-fonts-recommended texlive-latex-extra texlive-latex-recommended
27+
2428
- name: "Setup Python"
2529
uses: 'actions/setup-python@v4'
2630
with:
2731
python-version: '3.10'
32+
2833
- name: "Install tox"
2934
run: 'python -m pip install tox'
35+
3036
- name: "Checkout"
3137
uses: 'actions/checkout@v3'
32-
with:
33-
fetch-depth: 0
38+
3439
- name: "Build"
3540
run: 'tox run -e build'
36-
- name: "Upload artifact for Pages"
41+
42+
- name: "Upload artifact for GitHub Pages"
3743
if: "github.ref_name == 'main'"
3844
uses: 'actions/upload-pages-artifact@v1'
3945
with:
4046
path: 'build/html'
4147

4248
'deploy-job':
49+
4350
if: "github.ref_name == 'main'"
51+
4452
needs: ['build-job']
45-
runs-on: 'ubuntu-22.04'
53+
4654
permissions:
4755
contents: 'read'
4856
pages: 'write'
4957
id-token: 'write'
58+
5059
environment:
5160
name: 'github-pages'
5261
url: '${{ steps.deployment.outputs.page_url }}'
62+
63+
runs-on: 'ubuntu-22.04'
64+
5365
steps:
54-
- name: "Setup Pages"
66+
67+
- name: "Setup GitHub Pages"
5568
uses: 'actions/configure-pages@v3'
69+
5670
- name: "Deploy to GitHub Pages"
5771
id: 'deployment'
5872
uses: 'actions/deploy-pages@v1'

0 commit comments

Comments
 (0)