1
0
mirror of https://github.com/github/choosealicense.com synced 2024-06-18 09:49:54 +02:00

Add a build script

This commit is contained in:
Dlurak 2024-01-02 20:16:25 +01:00
parent b4dcf16458
commit 3196febd63
3 changed files with 9 additions and 5 deletions

View File

@ -39,6 +39,10 @@ jobs:
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
env:
JEKYLL_ENV: production
- name: Build static licenses
run: |
chmod +x ./script/build.sh
./script/build "${{ steps.pages.outputs.base_path }}"
- name: Upload artifact
# Automatically uploads an artifact from the './_site' directory by default
uses: actions/upload-pages-artifact@v3

View File

@ -2,11 +2,6 @@
set -e
echo "copy licenses"
mkdir raw
for file in _licenses/*.txt; do cp "$file" "raw/$(basename "$file" .txt)"; done
echo "bundling installin'"
gem install bundler
bundle install

5
script/build Executable file
View File

@ -0,0 +1,5 @@
echo "copy licenses"
mkdir $1/raw
for file in _licenses/*.txt; do cp "$file" "$1/raw/$(basename "$file" .txt)"; done