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:
parent
b4dcf16458
commit
3196febd63
4
.github/workflows/pages.yml
vendored
4
.github/workflows/pages.yml
vendored
|
@ -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
|
||||
|
|
|
@ -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
5
script/build
Executable 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
|
Loading…
Reference in New Issue
Block a user