Skip to content

Commit 00baf86

Browse files
committed
save documentation artifact
1 parent a2ee129 commit 00baf86

File tree

1 file changed

+4
-26
lines changed

1 file changed

+4
-26
lines changed

.github/workflows/static.yml

Lines changed: 4 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Simple workflow for deploying static content to GitHub Pages
2-
name: Deploy static content to Pages
2+
name: Deploy static master branch content to Pages
33

44
on:
55
# Runs on pushes targeting the default branch
@@ -21,60 +21,38 @@ concurrency:
2121
cancel-in-progress: true
2222

2323
jobs:
24-
# Single deploy job since we're just deploying
24+
2525
deploy:
2626
environment:
2727
name: github-pages
2828
url: ${{ steps.deployment.outputs.page_url }}
2929
runs-on: ubuntu-latest
3030
steps:
31+
3132
- name: Checkout master
3233
uses: actions/checkout@v4
3334
with:
3435
ref: master
3536

36-
###########
37-
# SET UP
38-
#########
3937
- name: "Setting up npm"
4038
uses: actions/setup-node@v4
4139
with:
4240
node-version: 20
4341

44-
############
45-
# CACHING
46-
##########
47-
- name: "Cache node modules"
48-
uses: actions/cache@v4
49-
env:
50-
cache-name: cache-node-modules
51-
with:
52-
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS
53-
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }}
54-
restore-keys: |
55-
${{ runner.os }}-build-${{ env.cache-name }}-
56-
${{ runner.os }}-build-
57-
${{ runner.os }}-
58-
5942
- name: Install build dependencies
6043
run: |
6144
mkdir ../gh-pages
6245
npm install [email protected] -g
6346
npm install @jsdoc/[email protected] -g
6447
65-
- uses: actions/download-artifact@v5
66-
with:
67-
name: github-pages
68-
path: ../gh-pages
69-
7048
- name: Build master documentation
7149
run: |
7250
cd ./geonode_mapstore_client/client/
7351
npm run docs
7452
cd ../../
7553
cp -a ./geonode_mapstore_client/static/fonts/. ./docs/fonts/
76-
rm -rf ../gh-pages/master
7754
mv ./docs ../gh-pages/master
55+
zip -r ../gh-pages/artifact.zip ../gh-pages/
7856
7957
- name: Setup Pages
8058
uses: actions/configure-pages@v2

0 commit comments

Comments
 (0)