-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Update website | ||
on: | ||
push: | ||
branches: | ||
- main | ||
permissions: | ||
contents: write | ||
jobs: | ||
update-website: | ||
concurrency: ci-${{ github.ref }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Checkout snowball | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: snowballstem/snowball | ||
path: snowball | ||
|
||
- name: Checkout snowball-data | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: snowballstem/snowball-data | ||
path: snowball-data | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install libipc-run-perl libtemplate-perl graphviz pngcrush python3-pygments | ||
npm i -g google-closure-compiler | ||
perl -pi -e '/--accept_const_keyword/ and $_="";s/closure-compiler/google-closure-compiler/;s/ADVANCED_OPTIMIZATIONS/ADVANCED/' generate | ||
- name: Build snowball | ||
run: | | ||
mv snowball ../snowball | ||
mv snowball-data ../snowball-data | ||
cd ../snowball | ||
make -sj2 | ||
- name: Generate | ||
run: | | ||
mkdir ../snowballstem.github.io | ||
./generate | ||
mv dist ../snowballstem.github.io | ||
cd ../snowballstem.github.io | ||
find . -name '*.tt' -delete | ||
rm js/demo.js js/*-stemmer.js | ||
- name: Deploy | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
folder: ../snowballstem.github.io |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.