forked from SkriptLang/Skript
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev/feature' into ench/update-player-parsing
- Loading branch information
Showing
104 changed files
with
2,591 additions
and
2,473 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,39 @@ | ||
name: Cleanup nightly documentation | ||
on: delete | ||
jobs: | ||
cleanup-nightly-docs: | ||
if: github.event.ref_type == 'branch' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Configure workflow | ||
id: configuration | ||
env: | ||
DELETED_BRANCH: ${{ github.event.ref }} | ||
run: | | ||
BRANCH_NAME="${DELETED_BRANCH#refs/*/}" | ||
echo "BRANCH_NAME=${BRANCH_NAME}" >> $GITHUB_OUTPUT | ||
echo "DOCS_OUTPUT_DIR=${GITHUB_WORKSPACE}/skript-docs/docs/nightly/${BRANCH_NAME}" >> $GITHUB_OUTPUT | ||
echo "DOCS_REPO_DIR=${GITHUB_WORKSPACE}/skript-docs" >> $GITHUB_OUTPUT | ||
- name: Checkout Skript | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.repository.default_branch }} | ||
submodules: recursive | ||
path: skript | ||
- name: Setup documentation environment | ||
uses: ./skript/.github/workflows/docs/setup-docs | ||
with: | ||
docs_deploy_key: ${{ secrets.DOCS_DEPLOY_KEY }} | ||
docs_output_dir: ${{ steps.configuration.outputs.DOCS_OUTPUT_DIR }} | ||
- name: Cleanup nightly documentation | ||
env: | ||
DOCS_OUTPUT_DIR: ${{ steps.configuration.outputs.DOCS_OUTPUT_DIR }} | ||
run: | | ||
rm -rf ${DOCS_OUTPUT_DIR} || true | ||
- name: Push nightly documentation cleanup | ||
uses: ./skript/.github/workflows/docs/push-docs | ||
with: | ||
docs_repo_dir: ${{ steps.configuration.outputs.DOCS_REPO_DIR }} | ||
git_name: Nightly Docs Bot | ||
git_email: [email protected] | ||
git_commit_message: "Delete ${{ steps.configuration.outputs.BRANCH_NAME }} branch nightly docs" |
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
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
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
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
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
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
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
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 |
---|---|---|
|
@@ -9,37 +9,48 @@ on: | |
|
||
jobs: | ||
nightly-docs: | ||
if: "! contains(toJSON(github.event.commits.*.message), '[ci skip]')" | ||
if: "!contains(toJSON(github.event.commits.*.message), '[ci skip]')" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Configure workflow | ||
id: configuration | ||
env: | ||
DOCS_DEPLOY_KEY: ${{ secrets.DOCS_DEPLOY_KEY }} | ||
run: | | ||
if [ -n "$DOCS_DEPLOY_KEY" ] | ||
then | ||
echo "DOCS_DEPLOY_KEY_PRESENT=true" >> $GITHUB_OUTPUT | ||
else | ||
echo "Secret 'DOCS_DEPLOY_KEY' not present. Exiting job." | ||
fi | ||
BRANCH_NAME="${GITHUB_REF#refs/*/}" | ||
echo "BRANCH_NAME=${BRANCH_NAME}" >> $GITHUB_OUTPUT | ||
echo "DOCS_OUTPUT_DIR=${GITHUB_WORKSPACE}/skript-docs/docs/nightly/${BRANCH_NAME}" >> $GITHUB_OUTPUT | ||
echo "DOCS_REPO_DIR=${GITHUB_WORKSPACE}/skript-docs" >> $GITHUB_OUTPUT | ||
echo "SKRIPT_REPO_DIR=${GITHUB_WORKSPACE}/skript" >> $GITHUB_OUTPUT | ||
- name: Checkout Skript | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
path: skript | ||
- name: Setup documentation environment | ||
if: steps.configuration.outputs.DOCS_DEPLOY_KEY_PRESENT == 'true' | ||
uses: ./skript/.github/workflows/docs/setup-docs | ||
with: | ||
docs_deploy_key: ${{ secrets.DOCS_DEPLOY_KEY }} | ||
docs_output_dir: ${{ steps.configuration.outputs.DOCS_OUTPUT_DIR }} | ||
- name: Generate documentation | ||
id: generate | ||
if: steps.configuration.outputs.DOCS_DEPLOY_KEY_PRESENT == 'true' | ||
uses: ./skript/.github/workflows/docs/generate-docs | ||
with: | ||
docs_output_dir: ${{ steps.configuration.outputs.DOCS_OUTPUT_DIR }} | ||
docs_repo_dir: ${{ steps.configuration.outputs.DOCS_REPO_DIR }} | ||
skript_repo_dir: ${{ steps.configuration.outputs.SKRIPT_REPO_DIR }} | ||
- name: Push nightly documentation | ||
if: steps.generate.outputs.DOCS_CHANGED == 'true' | ||
uses: ./skript/.github/workflows/docs/push-docs | ||
with: | ||
docs_output_dir: ${{ steps.configuration.outputs.DOCS_OUTPUT_DIR }} | ||
docs_repo_dir: ${{ steps.configuration.outputs.DOCS_REPO_DIR }} | ||
git_name: Nightly Docs Bot | ||
git_email: [email protected] | ||
|
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 |
---|---|---|
|
@@ -17,7 +17,7 @@ jobs: | |
echo "DOCS_REPO_DIR=${GITHUB_WORKSPACE}/skript-docs" >> $GITHUB_OUTPUT | ||
echo "SKRIPT_REPO_DIR=${GITHUB_WORKSPACE}/skript" >> $GITHUB_OUTPUT | ||
- name: Checkout Skript | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
path: skript | ||
|
@@ -26,14 +26,14 @@ jobs: | |
with: | ||
docs_deploy_key: ${{ secrets.DOCS_DEPLOY_KEY }} | ||
docs_output_dir: ${{ steps.configuration.outputs.DOCS_OUTPUT_DIR }} | ||
cleanup_pattern: "!(nightly|archives)" | ||
- name: Generate documentation | ||
uses: ./skript/.github/workflows/docs/generate-docs | ||
with: | ||
docs_output_dir: ${{ steps.configuration.outputs.DOCS_OUTPUT_DIR }} | ||
docs_repo_dir: ${{ steps.configuration.outputs.DOCS_REPO_DIR }} | ||
skript_repo_dir: ${{ steps.configuration.outputs.SKRIPT_REPO_DIR }} | ||
is_release: true | ||
cleanup_pattern: "!(nightly|archives|templates)" | ||
- name: Push release documentation | ||
uses: ./skript/.github/workflows/docs/push-docs | ||
with: | ||
|
@@ -56,7 +56,7 @@ jobs: | |
echo "DOCS_REPO_DIR=${GITHUB_WORKSPACE}/skript-docs" >> $GITHUB_OUTPUT | ||
echo "SKRIPT_REPO_DIR=${GITHUB_WORKSPACE}/skript" >> $GITHUB_OUTPUT | ||
- name: Checkout Skript | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
path: skript | ||
|
@@ -68,14 +68,12 @@ jobs: | |
- name: Generate documentation | ||
uses: ./skript/.github/workflows/docs/generate-docs | ||
with: | ||
docs_output_dir: ${{ steps.configuration.outputs.DOCS_OUTPUT_DIR }} | ||
docs_repo_dir: ${{ steps.configuration.outputs.DOCS_REPO_DIR }} | ||
skript_repo_dir: ${{ steps.configuration.outputs.SKRIPT_REPO_DIR }} | ||
is_release: true | ||
- name: Push archive documentation | ||
uses: ./skript/.github/workflows/docs/push-docs | ||
with: | ||
docs_output_dir: ${{ steps.configuration.outputs.DOCS_OUTPUT_DIR }} | ||
docs_repo_dir: ${{ steps.configuration.outputs.DOCS_REPO_DIR }} | ||
git_name: Archive Docs Bot | ||
git_email: [email protected] | ||
|
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
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
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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
# Done to increase the memory available to gradle. | ||
org.gradle.jvmargs=-Xmx1G | ||
org.gradle.parallel=true | ||
|
||
groupid=ch.njol | ||
name=skript | ||
version=2.7.0-beta3 | ||
version=2.8.0-dev | ||
jarName=Skript.jar | ||
testEnv=java17/paper-1.20.1 | ||
testEnvJavaVersion=17 |
Binary file not shown.
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.1-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip | ||
networkTimeout=10000 | ||
validateDistributionUrl=true | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.