Skip to content

Commit fc5a70d

Browse files
authored
Update static.yml
1 parent 9ff8b6a commit fc5a70d

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

.github/workflows/static.yml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,45 @@
1-
# Simple workflow for deploying static content to GitHub Pages
1+
# .github/workflows/static.yml
22
name: Deploy static content to Pages
33

44
on:
5-
# Runs on pushes targeting the default branch
65
push:
76
branches: ["main"]
8-
9-
# Allows you to run this workflow manually from the Actions tab
107
workflow_dispatch:
118

12-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
139
permissions:
1410
contents: read
1511
pages: write
1612
id-token: write
1713

18-
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19-
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
2014
concurrency:
2115
group: "pages"
2216
cancel-in-progress: false
2317

2418
jobs:
25-
# Single deploy job since we're just deploying
2619
deploy:
2720
environment:
2821
name: github-pages
2922
url: ${{ steps.deployment.outputs.page_url }}
3023
runs-on: ubuntu-latest
3124
steps:
32-
- name: Checkout
25+
- name: Checkout repository
3326
uses: actions/checkout@v4
34-
- name: Setup Pages
35-
uses: actions/configure-pages@v5
36-
- name: Upload artifact
27+
28+
- name: Set up Node.js
29+
uses: actions/setup-node@v4
30+
with:
31+
node-version: '20'
32+
33+
- name: Run build script
34+
run: |
35+
chmod +x main/Build/Buildscripts/build.sh
36+
./main/Build/Buildscripts/build.sh
37+
38+
- name: Upload GitHub Pages artifact
3739
uses: actions/upload-pages-artifact@v3
3840
with:
39-
# Upload entire repository
40-
path: '.'
41+
path: 'main/Build/dist'
42+
4143
- name: Deploy to GitHub Pages
4244
id: deployment
4345
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)