From 2c874453513f7af10ecb0b5e3e7c888c6a78309e Mon Sep 17 00:00:00 2001 From: Sam Tupy Date: Mon, 29 Apr 2024 12:35:08 -0500 Subject: [PATCH] begin work on automatic website updates --- .github/workflows/web_update.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/web_update.yml diff --git a/.github/workflows/web_update.yml b/.github/workflows/web_update.yml new file mode 100644 index 00000000..f5544530 --- /dev/null +++ b/.github/workflows/web_update.yml @@ -0,0 +1,27 @@ +name: website update + +on: + workflow_dispatch: + +jobs: + web_update: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v2 + - name: build + run: | + cd doc + pip3 install -r requirements.txt + cd OSL + python3 make_osl_document.py + cd .. + python3 docgen.py + cd .. + wget -O - https://github.com/cobalt-org/cobalt.rs/releases/download/v0.19.2/cobalt-v0.19.2-x86_64-unknown-linux-gnu.tar.gz|tar -xzf - ./cobalt + cd web + ../cobalt build + cd _site + tar -czf ../../_site.tar.gz * + cd ../.. + curl -u "${{secrets.CIFTP}}" -s -T _site.tar.gz ftp://nvgt.gg/_site.tar.gz +