Skip to content

Commit

Permalink
Adding DEV version to the website
Browse files Browse the repository at this point in the history
  • Loading branch information
sandorex committed May 19, 2023
1 parent abf94ed commit 25d34a7
Showing 1 changed file with 29 additions and 10 deletions.
39 changes: 29 additions & 10 deletions .github/workflows/builder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,27 +24,46 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Download the font and generate the info
- name: Checkout (for dev)
uses: actions/checkout@v3
with:
path: 'dev'

- name: Build dev version
run: |
mkdir -p fonts
mkdir -p dev/fonts
# test with DEV as the old versions are named differently
wget "https://github.com/sandorex/compacity-fonts/releases/download/DEV/CompacityFonts.zip"
mv *.zip fonts/
pushd dev
# unzip is going to unzip in current dir
pushd fonts
wget "https://github.com/sandorex/compacity-fonts/releases/download/DEV/CompacityFonts.zip"
unzip *.zip
rm *zip
popd
popd # fonts
# install the deps
npm install
npm run gen
# remove bloat
rm -rf node_modules
# run json generator script
popd # dev
- name: Build latest release
run: |
mkdir -p fonts
# build the latest release
pushd fonts/
wget "https://github.com/sandorex/compacity-fonts/releases/latest/download/CompacityFonts.zip"
unzip *.zip
rm *zip
popd
npm install
npm run gen
# bloat
# remove bloat
rm -rf node_modules
- name: Setup Pages
Expand Down

0 comments on commit 25d34a7

Please sign in to comment.