Skip to content

Commit b5b5edb

Browse files
authored
Merge pull request #1181 from square/rick/publish-with-macos-runners
publish snapshots and releases using macos-latest runners
2 parents 2ba79e7 + 91f26ef commit b5b5edb

File tree

2 files changed

+32
-31
lines changed

2 files changed

+32
-31
lines changed

.github/workflows/publish-release.yml

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
1-
name : Publish Release
1+
name: Publish Release
22

3-
on :
3+
on:
44
workflow_dispatch:
55

6-
jobs :
7-
publish-release :
8-
runs-on : ubuntu-latest
9-
if : github.repository == 'square/workflow-kotlin'
10-
timeout-minutes : 35
6+
jobs:
7+
publish-release:
8+
runs-on: macos-latest
9+
if: github.repository == 'square/workflow-kotlin'
10+
timeout-minutes: 35
1111

12-
steps :
13-
- uses : actions/checkout@v3
14-
- uses : gradle/wrapper-validation-action@v1
12+
steps:
13+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
14+
- uses: gradle/wrapper-validation-action@v1
1515

16-
- name : Ensure this isn't a -SNAPSHOT version
17-
uses : ./.github/actions/gradle-task
18-
with :
19-
task : checkVersionIsNotSnapshot
16+
- name: Ensure this isn't a -SNAPSHOT version
17+
uses: ./.github/actions/gradle-task
18+
with:
19+
task: checkVersionIsNotSnapshot
2020

21-
- name : Assemble
22-
uses : ./.github/actions/gradle-task
23-
with :
24-
task : assemble
21+
- name: Assemble
22+
uses: ./.github/actions/gradle-task
23+
with:
24+
task: assemble
2525

26-
- name : Check
27-
uses : ./.github/actions/gradle-task
28-
with :
29-
task : check -x artifactsCheck
26+
- name: Check
27+
uses: ./.github/actions/gradle-task
28+
with:
29+
task: check -x artifactsCheck
3030

31-
- name : Publish Release
32-
uses : ./.github/actions/gradle-task
33-
with :
34-
task : publish
35-
env :
36-
ORG_GRADLE_PROJECT_mavenCentralUsername : ${{ secrets.SONATYPE_NEXUS_USERNAME }}
37-
ORG_GRADLE_PROJECT_mavenCentralPassword : ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
38-
ORG_GRADLE_PROJECT_signingInMemoryKey : ${{ secrets.ARTIFACT_SIGNING_PRIVATE_KEY }}
31+
- name: Publish Release
32+
uses: ./.github/actions/gradle-task
33+
with:
34+
task: publish
35+
env:
36+
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
37+
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
38+
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.ARTIFACT_SIGNING_PRIVATE_KEY }}

.github/workflows/publish-snapshot.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@ on:
88

99
jobs:
1010
publish-snapshot:
11-
runs-on: workflow-kotlin-test-runner-ubuntu-4core
11+
runs-on: macos-latest
1212
if: github.repository == 'square/workflow-kotlin'
1313
timeout-minutes: 35
1414

1515
steps:
1616
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
17+
- uses: gradle/wrapper-validation-action@v1
1718

1819
- name: Check for -SNAPSHOT version
1920
uses: ./.github/actions/gradle-task

0 commit comments

Comments
 (0)