Skip to content

Commit 0f1bd8f

Browse files
committed
ci: fix npm dependencies + use build script
1 parent 1780f7c commit 0f1bd8f

4 files changed

Lines changed: 5968 additions & 22249 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,9 @@ jobs:
8484
env:
8585
DEBIAN_FRONTEND: noninteractive
8686
run: |
87-
echo "Installing NPM dependencies..."
88-
npm install --force
89-
npm install -g grunt-cli
90-
cd bootstrap
91-
npm install
92-
echo "Generating bootstrap files..."
93-
grunt dist
94-
cp -r dist/. ../ietf/static/ietf/bootstrap/
95-
cd ..
87+
echo "Running build script..."
88+
chmod +x ./dev/deploy/build.sh
89+
sh ./dev/deploy/build.sh
9690
echo "Setting version $PKG_VERSION_STRICT..."
9791
sed -i -r -e "s/^__version__ += '.*'$/__version__ = '$PKG_VERSION_STRICT'/" ietf/__init__.py
9892
echo "Build release tarball..."

dev/deploy/build.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
echo "Installing NPM dependencies..."
4+
npm install
5+
6+
echo "Building bootstrap 3 assets..."
7+
cd bootstrap
8+
npm install -g grunt-cli
9+
npm install
10+
grunt dist
11+
cp -r dist/. ../ietf/static/ietf/bootstrap/
12+
cd ..

0 commit comments

Comments
 (0)