Skip to content

Commit e05bb6b

Browse files
committed
.github: try pages directory listing
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent a4fe0eb commit e05bb6b

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

.github/workflows/workflow.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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

0 commit comments

Comments
 (0)