Skip to content

Commit

Permalink
Merge pull request #1181 from square/rick/publish-with-macos-runners
Browse files Browse the repository at this point in the history
publish snapshots and releases using macos-latest runners
  • Loading branch information
RBusarow authored Feb 8, 2024
2 parents 2ba79e7 + 91f26ef commit b5b5edb
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 31 deletions.
60 changes: 30 additions & 30 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
name : Publish Release
name: Publish Release

on :
on:
workflow_dispatch:

jobs :
publish-release :
runs-on : ubuntu-latest
if : github.repository == 'square/workflow-kotlin'
timeout-minutes : 35
jobs:
publish-release:
runs-on: macos-latest
if: github.repository == 'square/workflow-kotlin'
timeout-minutes: 35

steps :
- uses : actions/checkout@v3
- uses : gradle/wrapper-validation-action@v1
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: gradle/wrapper-validation-action@v1

- name : Ensure this isn't a -SNAPSHOT version
uses : ./.github/actions/gradle-task
with :
task : checkVersionIsNotSnapshot
- name: Ensure this isn't a -SNAPSHOT version
uses: ./.github/actions/gradle-task
with:
task: checkVersionIsNotSnapshot

- name : Assemble
uses : ./.github/actions/gradle-task
with :
task : assemble
- name: Assemble
uses: ./.github/actions/gradle-task
with:
task: assemble

- name : Check
uses : ./.github/actions/gradle-task
with :
task : check -x artifactsCheck
- name: Check
uses: ./.github/actions/gradle-task
with:
task: check -x artifactsCheck

- name : Publish Release
uses : ./.github/actions/gradle-task
with :
task : publish
env :
ORG_GRADLE_PROJECT_mavenCentralUsername : ${{ secrets.SONATYPE_NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword : ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey : ${{ secrets.ARTIFACT_SIGNING_PRIVATE_KEY }}
- name: Publish Release
uses: ./.github/actions/gradle-task
with:
task: publish
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.ARTIFACT_SIGNING_PRIVATE_KEY }}
3 changes: 2 additions & 1 deletion .github/workflows/publish-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ on:

jobs:
publish-snapshot:
runs-on: workflow-kotlin-test-runner-ubuntu-4core
runs-on: macos-latest
if: github.repository == 'square/workflow-kotlin'
timeout-minutes: 35

steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: gradle/wrapper-validation-action@v1

- name: Check for -SNAPSHOT version
uses: ./.github/actions/gradle-task
Expand Down

0 comments on commit b5b5edb

Please sign in to comment.