-
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (41 loc) · 1.17 KB
/
workflow.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Pages_Directory_Listing
on: [ push ]
jobs:
# Job 1. List the pages and generate the artifact
pages_directory_listing:
runs-on: ubuntu-latest
name: Pages Directory Listing
steps:
# Step 1. Checkout Repository
- name: Checkout Repository
uses: actions/checkout@v3
with:
# branch to check out
ref: main
# Step 2. Generate the artifact
- name: Generate Directory Listings
uses: jayanta525/[email protected]
with:
# directory to generate the artifact
FOLDER: .
# Step 3. Upload the artifact
- name: Upload Artifact
uses: actions/upload-pages-artifact@v1
with:
path: '.'
# Job 2. Deploy the artifact
deploy:
needs: pages_directory_listing
runs-on: ubuntu-latest
name: Deploy
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
# Step 1. Deploy the artifact to GitHub Pages
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1