Skip to content

Commit

Permalink
Create build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
HSGamer authored Aug 12, 2024
0 parents commit 77f545a
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build.yml
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

0 comments on commit 77f545a

Please sign in to comment.