Skip to content

Commit 4b61733

Browse files
authored
Update static.yml
1 parent a921ad2 commit 4b61733

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

.github/workflows/static.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,21 @@
11
# Simple workflow for deploying static content to GitHub Pages
22
name: Deploy static content to Pages
33

4-
runs:
5-
using: 'node20'
6-
main: 'main.js'
7-
84
on:
9-
# Runs on pushes targeting the default branch
5+
# Runs on pushes targeting the master branch
106
push:
117
branches: ["master"]
128

139
# Allows you to run this workflow manually from the Actions tab
1410
workflow_dispatch:
15-
11+
1612
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1713
permissions:
1814
contents: read
1915
pages: write
2016
id-token: write
2117

2218
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
23-
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
2419
concurrency:
2520
group: "pages"
2621
cancel-in-progress: false
@@ -35,13 +30,21 @@ jobs:
3530
steps:
3631
- name: Checkout
3732
uses: actions/checkout@v4
33+
34+
# This triggers your action file located at: /.github/actions/my-custom-deployer/action.yml
35+
- name: Run Custom Node Deployer
36+
uses: ./.github/actions/my-custom-deployer
37+
3838
- name: Setup Pages
39-
uses: actions/configure-pages@v4
39+
uses: actions/configure-pages@v5
40+
4041
- name: Upload artifact
4142
uses: actions/upload-pages-artifact@v3
4243
with:
44+
# IMPORTANT: Your main.js script must output its built files into this folder
4345
# Upload entire repository
4446
path: './docs'
47+
4548
- name: Deploy to GitHub Pages
4649
id: deployment
4750
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)