diff options
Diffstat (limited to '.github/workflows/publish.yml')
| -rw-r--r-- | .github/workflows/publish.yml | 31 |
1 files changed, 12 insertions, 19 deletions
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f1f17c27..c122c9fe 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,29 +1,22 @@ -name: Publish +name: Java CI + on: push: branches: - - 'dev/**' + - 'dev/0.6-forge' jobs: build: - runs-on: ubuntu-20.04 - container: - image: openjdk:8-jdk - options: --user root + + runs-on: ubuntu-latest + steps: - uses: actions/checkout@v1 - - uses: gradle/wrapper-validation-action@v1 - - # Generate the build number based on tags to allow per branch build numbers, not something github provides by default. - - name: Generate build number - id: buildnumber - uses: einaregilsson/build-number@v3 + - name: Set up JDK 1.8 + uses: actions/setup-java@v1 with: - token: ${{ secrets.github_token }} - prefix: ${{ github.ref }} - - - run: ./gradlew build publish -x test --stacktrace + java-version: 1.8 + - name: Upload to Maven + run: ./gradlew publish env: - MAVEN_URL: ${{ secrets.MAVEN_URL }} - MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} - MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
\ No newline at end of file + MAVEN_PASS: ${{ secrets.MAVEN_PASS }}
\ No newline at end of file |
