Skip to content

Commit

Permalink
jithubaction
Browse files Browse the repository at this point in the history
  • Loading branch information
kidofcubes committed Dec 25, 2024
1 parent 99ce38d commit 529d35d
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build plugin and blow up

on: [push, workflow_dispatch]

jobs:
build:

runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- uses: actions/checkout@v4
- name: JDK 21 setup
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
server-id: github
settings-path: ${{ github.workspace }}

- name: Gradle plz build
uses: gradle/actions/setup-gradle@v3
env:
GENSOKYOUSER: ${{ secrets.ORG_GRADLE_PROJECT_GENSOREPOUSERNAME }}
GENSOKYOTOKEN: ${{ secrets.ORG_GRADLE_PROJECT_GENSOREPOPASSWORD }}
with:
arguments: build

- name: GitHub save this jar for me kthx
uses: actions/upload-artifact@v3
with:
name: kosuzu-plugin
path: build/libs/*.jar

- name: Reposilite hates my posterior
uses: gradle/actions/setup-gradle@v3
with:
arguments: publish
env:
GENSOKYOUSER: ${{ secrets.ORG_GRADLE_PROJECT_GENSOREPOUSERNAME }}
GENSOKYOTOKEN: ${{ secrets.ORG_GRADLE_PROJECT_GENSOREPOPASSWORD }}

0 comments on commit 529d35d

Please # to comment.