Skip to content

Commit

Permalink
Use GHA to deploy website on push
Browse files Browse the repository at this point in the history
  • Loading branch information
ojwb committed Oct 1, 2023
1 parent 48edab3 commit d0bfa4c
Show file tree
Hide file tree
Showing 22 changed files with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/update-website.yml
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 added dist/jsstemmer-2.1.0.tar.gz
Binary file not shown.
Binary file added dist/jsstemmer-2.2.0.tar.gz
Binary file not shown.
Binary file added dist/jsstemmer.tgz
Binary file not shown.
Binary file added dist/libstemmer_c-2.1.0.tar.gz
Binary file not shown.
Binary file added dist/libstemmer_c-2.2.0.tar.gz
Binary file not shown.
Binary file added dist/libstemmer_c.tgz
Binary file not shown.
Binary file added dist/libstemmer_csharp-2.1.0.tar.gz
Binary file not shown.
Binary file added dist/libstemmer_csharp-2.2.0.tar.gz
Binary file not shown.
Binary file added dist/libstemmer_csharp.tgz
Binary file not shown.
Binary file added dist/libstemmer_java-2.1.0.tar.gz
Binary file not shown.
Binary file added dist/libstemmer_java-2.2.0.tar.gz
Binary file not shown.
Binary file added dist/libstemmer_java.tgz
Binary file not shown.
Binary file added dist/snowball-2.1.0.tar.gz
Binary file not shown.
Binary file added dist/snowball-2.2.0.tar.gz
Binary file not shown.
Binary file added dist/snowball_code.tgz
Binary file not shown.
Binary file added dist/snowballstemmer-2.0.0-py2.py3-none-any.whl
Binary file not shown.
Binary file added dist/snowballstemmer-2.0.0.tar.gz
Binary file not shown.
Binary file added dist/snowballstemmer-2.1.0-py2.py3-none-any.whl
Binary file not shown.
Binary file added dist/snowballstemmer-2.1.0.tar.gz
Binary file not shown.
Binary file added dist/snowballstemmer-2.2.0-py2.py3-none-any.whl
Binary file not shown.
Binary file added dist/snowballstemmer-2.2.0.tar.gz
Binary file not shown.

0 comments on commit d0bfa4c

Please sign in to comment.