Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement new website #2859

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Deploy new Documentation

on:
release:
types: [published]

jobs:
build:

runs-on: ubuntu-latest

steps:

- uses: actions/checkout@v2

- name: Checkout submodules
uses: textbook/git-checkout-submodule-action@2.0.0

- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8

- name: Build Skript
run: ./gradlew clean build

- name: Generate new documentation
if: success()
run: |
./gradlew generateDocs
git config --global user.email "${EMAIL}"
git config --global user.name "SkriptLang"
git clone https://${ACCESS_TOKEN}@github.com/SkriptLang/skript-website-public.git
cd skript-website-public
git checkout -b update/docs
rm docs.json
mv ../src/main/resources/docs.json docs.json
git add .
git commit -m "[update] - Updated documentation"
git push origin update/docs -f
env:
EMAIL: ${{ secrets.EMAIL }}
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
28 changes: 0 additions & 28 deletions docs/README.md

This file was deleted.

5 changes: 0 additions & 5 deletions docs/classes.html

This file was deleted.

5 changes: 0 additions & 5 deletions docs/conditions.html

This file was deleted.

252 changes: 0 additions & 252 deletions docs/css/styles.css

This file was deleted.

33 changes: 0 additions & 33 deletions docs/docs.json

This file was deleted.

5 changes: 0 additions & 5 deletions docs/effects.html

This file was deleted.

5 changes: 0 additions & 5 deletions docs/events.html

This file was deleted.

5 changes: 0 additions & 5 deletions docs/expressions.html

This file was deleted.

Loading