Skip to content

Commit 926dcf3

Browse files
committed
Fix deploy action not publishing SpongeCommon artifacts
1 parent ae1336a commit 926dcf3

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

.github/workflows/deploy.yaml

+15-8
Original file line numberDiff line numberDiff line change
@@ -29,26 +29,33 @@ jobs:
2929
fail-fast: false
3030
matrix:
3131
project:
32+
- common
3233
- vanilla
3334
- forge
3435
- neoforge
3536
include:
37+
- project: common
38+
gradleProject: ''
39+
skipUpdateBranch: false
3640
- project: vanilla
37-
gradleProject: SpongeVanilla
41+
gradleProject: ':SpongeVanilla'
42+
skipUpdateBranch: false
3843
- project: forge
39-
gradleProject: SpongeForge
44+
gradleProject: ':SpongeForge'
45+
skipUpdateBranch: true
4046
- project: neoforge
41-
gradleProject: SpongeNeo
47+
gradleProject: ':SpongeNeo'
48+
skipUpdateBranch: true
4249
steps:
4350
- name: setup
44-
if: "!startsWith(github.ref, 'refs/heads/update/') || matrix.project == 'vanilla'"
51+
if: "!(matrix.skipUpdateBranch && startsWith(github.ref, 'refs/heads/update/'))"
4552
id: setup
4653
uses: SpongePowered/.github/.github/actions/setup-java-env@master
4754
with:
4855
runtime_version: 21
4956
publishing_branch_regex: ''
5057
- name: setup / minecraft cache
51-
if: "!startsWith(github.ref, 'refs/heads/update/') || matrix.project == 'vanilla'"
58+
if: "!(matrix.skipUpdateBranch && startsWith(github.ref, 'refs/heads/update/'))"
5259
uses: "actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9" # v4.0.2
5360
with:
5461
path: |
@@ -59,14 +66,14 @@ jobs:
5966
${{ runner.os }}-minecraft-${{ env.CACHE_REV }}-
6067
# We don't need to run tests again, so we just publish
6168
- name: setup / workspace
62-
if: "!startsWith(github.ref, 'refs/heads/update/') || matrix.project == 'vanilla'"
69+
if: "!(matrix.skipUpdateBranch && startsWith(github.ref, 'refs/heads/update/'))"
6370
run: |
6471
echo "GIT_COMMIT=${GITHUB_SHA}" >> $GITHUB_ENV
6572
echo "GIT_BRANCH=${GITHUB_REF##*/}" >> $GITHUB_ENV
6673
echo "BUILD_NUMBER=${GITHUB_RUN_NUMBER}" >> $GITHUB_ENV
6774
- name: Publish to Sponge Maven & GitHub Packages
68-
if: "!startsWith(github.ref, 'refs/heads/update/') || matrix.project == 'vanilla'"
69-
run: ./gradlew -s -Pprojects=vanilla,${{ matrix.project }} :${{ matrix.gradleProject }}:publish
75+
if: "!(matrix.skipUpdateBranch && startsWith(github.ref, 'refs/heads/update/'))"
76+
run: ./gradlew -s -Pprojects=${{ matrix.project }} ${{ matrix.gradleProject }}:publish
7077
env:
7178
CI_SYSTEM: Github Actions
7279
GITHUB_USERNAME: "${{ github.actor }}"

0 commit comments

Comments
 (0)