mirror of
https://github.com/github/choosealicense.com
synced 2024-06-29 15:13:04 +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 }}"
|
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
|
||||||
env:
|
env:
|
||||||
JEKYLL_ENV: production
|
JEKYLL_ENV: production
|
||||||
|
- name: Build static licenses
|
||||||
|
run: |
|
||||||
|
chmod +x ./script/build.sh
|
||||||
|
./script/build "${{ steps.pages.outputs.base_path }}"
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
# Automatically uploads an artifact from the './_site' directory by default
|
# Automatically uploads an artifact from the './_site' directory by default
|
||||||
uses: actions/upload-pages-artifact@v3
|
uses: actions/upload-pages-artifact@v3
|
||||||
|
|
|
@ -2,11 +2,6 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
echo "copy licenses"
|
|
||||||
|
|
||||||
mkdir raw
|
|
||||||
for file in _licenses/*.txt; do cp "$file" "raw/$(basename "$file" .txt)"; done
|
|
||||||
|
|
||||||
echo "bundling installin'"
|
echo "bundling installin'"
|
||||||
gem install bundler
|
gem install bundler
|
||||||
bundle install
|
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