Skip to content

Commit

Permalink
blob builds (todo: autoupdater)
Browse files Browse the repository at this point in the history
  • Loading branch information
char3210 committed Dec 6, 2023
1 parent af5724f commit f17361d
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Publish
on:
push:
branches:
- main

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Set up JDK 17
uses: actions/[email protected]
with:
distribution: 'adopt'
java-version: '17'
java-package: jdk
architecture: x64
- name: Package with Maven
run: mvn -B package
- name: Upload to Blob Builds
uses: WalshyDev/blob-builds/gh-action@main
with:
project: SlimefunAdvancements
apiToken: ${{ secrets.BLOB_BUILDS_API_TOKEN }}
file: ./target/sfadvancements.jar
releaseNotes: ${{ github.event.head_commit.message }}
3 changes: 3 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@
</repositories>

<build>
<defaultGoal>clean package</defaultGoal>
<finalName>${project.artifactId}</finalName>

<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down

0 comments on commit f17361d

Please sign in to comment.