Skip to content

Commit 57fabf9

Browse files
author
doublebyte1
committed
- removed dist folder from source tree
1 parent a9effa8 commit 57fabf9

726 files changed

Lines changed: 110 additions & 652421 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/main.yml

Lines changed: 92 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,107 @@
1-
name: build website # ThankYou @tomkralidis!
1+
name: Deploy to GitHub Pages
22

33
on:
44
push:
5-
branches: [ "master" ]
6-
pull_request:
7-
branches: [ "master" ]
8-
5+
branches:
6+
- master
97
jobs:
10-
build:
8+
build-and-deploy:
119
runs-on: ubuntu-latest
12-
timeout-minutes: 20
13-
# continue-on-error: true
14-
environment:
15-
name: github-pages
16-
url: ${{ steps.deployment.outputs.page_url }}
17-
permissions:
18-
contents: 'read'
19-
id-token: 'write'
20-
pages: 'write'
21-
actions: 'write'
22-
checks: 'write'
23-
deployments: 'write'
2410

2511
steps:
26-
- name: checkout repo
12+
- name: Checkout code
2713
uses: actions/checkout@v4
2814

29-
- name: setup NodeJS
15+
- name: Setup Node.js
3016
uses: actions/setup-node@v4
17+
with:
18+
node-version: '20'
19+
20+
- name: Install dependencies
21+
run: npm install
3122

32-
- name: install dependencies
23+
- name: Build project
24+
run: npm run build
25+
26+
- name: Copy sprints.html to sprints/index.html
3327
run: |
34-
npm install
35-
36-
- name: build website
28+
mkdir -p dist/sprints
29+
cp dist/sprints.html dist/sprints/index.html
30+
31+
- name: Deploy to GitHub Pages
32+
uses: peaceiris/actions-gh-pages@v4
33+
with:
34+
github_token: ${{ secrets.GITHUB_TOKEN }}
35+
publish_dir: ./dist
36+
37+
add-subtrees:
38+
runs-on: ubuntu-latest
39+
needs: build-and-deploy # Ensures build runs first
40+
41+
steps:
42+
- name: Checkout gh-pages branch
43+
uses: actions/checkout@v4
44+
with:
45+
ref: gh-pages
46+
persist-credentials: true
47+
48+
- name: Configure Git
3749
run: |
38-
npm run build
39-
40-
- name: copy api folder
50+
git config user.name "github-actions[bot]"
51+
git config user.email "github-actions[bot]@users.noreply.github.com"
52+
53+
- name: Add subtree 15
4154
run: |
42-
cp -r api/ dist/
55+
git subtree add --prefix sprints/15 https://github.com/opengeospatial/dev-ogc-org-sprint-landing-15.git gh-pages --squash || echo "Adding sprints/15"
4356
44-
- name: Setup Pages
45-
uses: actions/configure-pages@v4
46-
- name: Upload artifact
47-
uses: actions/upload-pages-artifact@v3
48-
with:
49-
# Upload build directory content
50-
path: 'dist/'
51-
- name: Deploy to GitHub Pages
52-
id: deployment
53-
uses: actions/deploy-pages@v4
54-
env:
55-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57+
- name: Add subtree 16
58+
run: |
59+
git subtree add --prefix sprints/16 https://github.com/opengeospatial/dev-ogc-org-sprint-landing-16.git gh-pages --squash || echo "Adding sprints/16"
60+
61+
- name: Add subtree 17
62+
run: |
63+
git subtree add --prefix sprints/17 https://github.com/opengeospatial/dev-ogc-org-sprint-landing-17.git gh-pages --squash || echo "Adding sprints/17"
64+
65+
- name: Add subtree 18
66+
run: |
67+
git subtree add --prefix sprints/18 https://github.com/opengeospatial/dev-ogc-org-sprint-landing-18.git gh-pages --squash || echo "Adding sprints/18"
68+
69+
- name: Add subtree 17
70+
run: |
71+
git subtree add --prefix sprints/19 https://github.com/opengeospatial/dev-ogc-org-sprint-landing-19.git gh-pages --squash || echo "Adding sprints/19"
72+
73+
- name: Add subtree 20
74+
run: |
75+
git subtree add --prefix sprints/20 https://github.com/opengeospatial/dev-ogc-org-sprint-landing-20.git gh-pages --squash || echo "Adding sprints/20"
76+
77+
- name: Add subtree 21
78+
run: |
79+
git subtree add --prefix sprints/21 https://github.com/opengeospatial/dev-ogc-org-sprint-landing-21.git gh-pages --squash || echo "Adding sprints/21"
80+
81+
- name: Add subtree 22
82+
run: |
83+
git subtree add --prefix sprints/22 https://github.com/opengeospatial/dev-ogc-org-sprint-landing-22.git gh-pages --squash || echo "Adding sprints/22"
84+
85+
- name: Add subtree 23
86+
run: |
87+
git subtree add --prefix sprints/23 https://github.com/opengeospatial/dev-ogc-org-sprint-landing-23.git gh-pages --squash || echo "Adding sprints/23"
88+
89+
- name: Add subtree 24
90+
run: |
91+
git subtree add --prefix sprints/24 https://github.com/opengeospatial/dev-ogc-org-sprint-landing-24.git gh-pages --squash || echo "Adding sprints/24"
92+
93+
- name: Add subtree 25
94+
run: |
95+
git subtree add --prefix sprints/25 https://github.com/opengeospatial/dev-ogc-org-sprint-landing-25.git gh-pages --squash || echo "Adding sprints/25"
96+
97+
- name: Add subtree sponsoring
98+
run: |
99+
git subtree add --prefix sprints/sponsoring https://github.com/opengeospatial/dev-sprint-sponsoring.git gh-pages --squash || echo "Adding sprints/sponsoring"
100+
101+
- name: Add subtree nodes
102+
run: |
103+
git subtree add --prefix sprints/nodes https://github.com/ogcincubator/code-sprint-nodes.git gh-pages --squash || echo "Adding sprints/nodes"
104+
105+
- name: Push changes
106+
run: |
107+
git push origin gh-pages

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.DS_Store
22
node_modules
3+
.dist/

0 commit comments

Comments
 (0)