Skip to content

Commit

Permalink
Cleanup workflows, fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
AlphaKR93 committed Dec 3, 2023
1 parent e340788 commit 849130b
Show file tree
Hide file tree
Showing 5 changed files with 108 additions and 154 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,34 @@ name: Build Plazma

on:
push:
branches: [ "ver/*", "feat/*", "dev/*", "expr/*", "ench/*", "impl/*" ]
branches: [ "ver/*", "dev/*", "feat/**/*" ]
workflow_dispatch:

env:
ORG_NAME: PlazmaMC
MC_VERSION: 1.20.2
MAIN_BRANCH: ver/1.20.1
DEBUG: 'false'

jobs:
release:
strategy:
matrix:
base_jdk: [17]
graal: [latest]
base_jdk: [21]
os: [ubuntu-22.04]

if: "!startsWith(github.event.commits[0].message, '[CI-Skip]')"
runs-on: ${{ matrix.os }}
steps:
- name: Checkout action
uses: actions/checkout@v3
- name: Checkout repository
uses: actions/checkout@v4

- name: Checkout pages
uses: actions/checkout@v3
- name: Checkout javadocs
uses: actions/checkout@v4
if: github.ref_name == env.MAIN_BRANCH
with:
repository: PlazmaMC/Javadocs
path: javadoc
ref: gh-pages
ref: main
token: ${{ secrets.GH_PAT }}

- name: Validate Gradle Wrapper
Expand All @@ -40,7 +40,7 @@ jobs:
with:
github-token: ${{ secrets.GH_PAT }}
java-version: ${{ matrix.base_jdk }}
version: ${{ matrix.graal }}
version: latest
cache: 'gradle'

- name: Configure Git
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:
./gradlew publish --stacktrace
- name: Upload Artifacts
if: env.DEBUG == 'true' || !startsWith(github.ref_name, 'ver/')
if: !startsWith(github.ref_name, 'ver/')
uses: actions/upload-artifact@v3
with:
name: Artifacts
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ jobs:
release:
strategy:
matrix:
jdk: [19.0.2+7]
java: ['temurin']
jdk: [21]
java: ['zulu']
os: [ubuntu-22.04]

if: "!contains(github.event.commits[0].message, '[CheckSkip]')"
Expand Down
46 changes: 0 additions & 46 deletions .github/workflows/javadocs.yml

This file was deleted.

36 changes: 0 additions & 36 deletions .github/workflows/test.yml

This file was deleted.

Loading

0 comments on commit 849130b

Please sign in to comment.