File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : directory-listing
2+ on : [push]
3+
4+ jobs :
5+ pages-directory-listing :
6+ runs-on : ubuntu-latest
7+ name : Directory Listings Index
8+ steps :
9+ - name : Checkout Repository
10+ uses : actions/checkout@v3
11+ with :
12+ ref : main
13+
14+ - name : Generate Directory Listings
15+ uses : jayanta525/github-pages-directory-listing@v4.0.0
16+ with :
17+ FOLDER : ./
18+
19+ - name : Upload artifact
20+ uses : actions/upload-pages-artifact@v1
21+ with :
22+ path : ' ./' # upload generated folder
23+
24+ deploy :
25+ needs : pages-directory-listing
26+ permissions :
27+ pages : write # to deploy to Pages
28+ id-token : write # to verify the deployment originates from an appropriate source
29+
30+ # Deploy to the github-pages environment
31+ environment :
32+ name : github-pages
33+ url : ${{ steps.deployment.outputs.page_url }}
34+
35+ # Specify runner + deployment step
36+ runs-on : ubuntu-latest
37+ steps :
38+ - name : Deploy to GitHub Pages
39+ id : deployment
40+ uses : actions/deploy-pages@v1
You can’t perform that action at this time.
0 commit comments