Skip to content

Commit a5874d2

Browse files
committed
Rename workflows
1 parent 2987eac commit a5874d2

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.github/workflows/build-commit-publish.yml renamed to .github/workflows/build-commit-nopublish.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
# Used when a commit is pushed to the repository
22
# This makes use of caching for faster builds and uploads the resulting artifacts
3-
name: build-commit
3+
name: build-commit-nopublish
44

55
on:
66
push:
7-
branches:
7+
branches-ignore:
88
- dev
99

1010
jobs:
1111
build:
1212
runs-on: ubuntu-latest
13-
environment: staging
1413

1514
steps:
1615
- name: Extract current branch name
@@ -41,10 +40,3 @@ jobs:
4140
with:
4241
name: sodium-artifacts-${{ steps.ref.outputs.branch }}
4342
path: build/mods/*.jar
44-
45-
- name: Publish Release Snapshot to CaffeineMC Maven
46-
env:
47-
ORG_GRADLE_PROJECT_caffeineMCMavenUsername: ${{ secrets.CAFFEINEMC_MAVEN_USERNAME }}
48-
ORG_GRADLE_PROJECT_caffeineMCMavenPassword: ${{ secrets.CAFFEINEMC_MAVEN_PASSWORD }}
49-
if: ${{ env.ORG_GRADLE_PROJECT_caffeineMCMavenUsername != '' && env.ORG_GRADLE_PROJECT_caffeineMCMavenPassword != '' }}
50-
run: ./gradlew publishAllPublicationsToCaffeineMCRepository

.github/workflows/build-commit.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ name: build-commit
44

55
on:
66
push:
7-
branches-ignore:
7+
branches:
88
- dev
99

1010
jobs:
1111
build:
1212
runs-on: ubuntu-latest
13+
environment: staging
1314

1415
steps:
1516
- name: Extract current branch name
@@ -40,3 +41,10 @@ jobs:
4041
with:
4142
name: sodium-artifacts-${{ steps.ref.outputs.branch }}
4243
path: build/mods/*.jar
44+
45+
- name: Publish Release Snapshot to CaffeineMC Maven
46+
env:
47+
ORG_GRADLE_PROJECT_caffeineMCMavenUsername: ${{ secrets.CAFFEINEMC_MAVEN_USERNAME }}
48+
ORG_GRADLE_PROJECT_caffeineMCMavenPassword: ${{ secrets.CAFFEINEMC_MAVEN_PASSWORD }}
49+
if: ${{ env.ORG_GRADLE_PROJECT_caffeineMCMavenUsername != '' && env.ORG_GRADLE_PROJECT_caffeineMCMavenPassword != '' }}
50+
run: ./gradlew publishAllPublicationsToCaffeineMCRepository

0 commit comments

Comments
 (0)