Skip to content

Commit aa20cf0

Browse files
committed
minor fixes
1 parent 840160f commit aa20cf0

1 file changed

Lines changed: 9 additions & 16 deletions

File tree

.github/workflows/documentation.yml

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ concurrency:
1818
cancel-in-progress: false
1919

2020
jobs:
21-
build:
21+
deploy:
22+
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
2223
runs-on: ubuntu-latest
2324
steps:
2425
- name: Checkout repository
@@ -28,23 +29,15 @@ jobs:
2829
uses: conda-incubator/setup-miniconda@v3
2930
with:
3031
environment-file: environment.yml
32+
cache-environment: true
33+
cache-downloads: true
34+
3135
- name: Build documentation
3236
shell: bash -l {0}
3337
run: make html
3438

35-
- name: Upload artifact
36-
uses: actions/upload-pages-artifact@v4
37-
with:
38-
path: 'build/html'
39-
40-
deploy:
41-
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
42-
needs: build
43-
runs-on: ubuntu-latest
44-
environment:
45-
name: github-pages
46-
url: ${{ steps.deployment.outputs.page_url }}
47-
steps:
4839
- name: Deploy to GitHub Pages
49-
id: deployment
50-
uses: actions/deploy-pages@v2
40+
uses: peaceiris/actions-gh-pages@v3
41+
with:
42+
github_token: ${{ secrets.GITHUB_TOKEN }}
43+
publish_dir: ./build/html

0 commit comments

Comments
 (0)