Skip to content

Commit 09b28bb

Browse files
committed
github action script revised (again)
1 parent 4646513 commit 09b28bb

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

.github/workflows/pluto_export.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
name: Export All Pluto Notebooks
1+
name: Export Pluto Notebooks
22
on:
33
push:
44
branches: [main]
55

66
jobs:
77
build-and-deploy:
88
runs-on: ubuntu-latest
9+
permissions:
10+
contents: write
911
steps:
1012
- name: Checkout Repository
1113
uses: actions/checkout@v4
@@ -18,17 +20,12 @@ jobs:
1820
- name: Install PlutoSliderServer
1921
run: julia -e 'using Pkg; Pkg.add("PlutoSliderServer")'
2022

21-
- name: Export All Notebooks
22-
run: |
23-
julia -e '
24-
using PlutoSliderServer;
25-
export_directory(".");
26-
'
23+
- name: Export Notebooks
24+
run: julia -e 'using PlutoSliderServer; export_directory(".")'
2725

2826
- name: Deploy to GitHub Pages
2927
uses: peaceiris/actions-gh-pages@v3
3028
with:
3129
github_token: ${{ secrets.GITHUB_TOKEN }}
3230
publish_dir: .
33-
# Die Action nimmt jetzt alle .html Dateien, die erzeugt wurden
34-
keep_files: true
31+
force_orphan: true

0 commit comments

Comments
 (0)