-
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.
- Loading branch information
0 parents
commit 77f545a
Showing
1 changed file
with
31 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,31 @@ | ||
name: Build & Deploy | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Clone Folia | ||
run: git clone https://github.com/PaperMC/Folia.git | ||
- name: Checkout the Repo | ||
uses: actions/checkout@v4 | ||
with: | ||
path: repo | ||
- name: Change Branch to gh-pages | ||
run: | | ||
cd ./repo | ||
git branch -M gh-pages | ||
- name: Publish | ||
run: | | ||
cd ./Folia | ||
./gradlew -PpublishDevBundle -Dmaven.repo.local=$GITHUB_WORKSPACE/repo publishToMavenLocal | ||
- name: Push the gh-pages Repo | ||
run: | | ||
git add . | ||
git commit -m "Update Repo" | ||
git push origin gh-pages |