Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

publish snapshots and releases using macos-latest runners #1181

Merged
merged 2 commits into from
Feb 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not released yet?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kotlin.yml is still using v3. Should we be consistent?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@RBusarow ping, enquiring minds want to know.


- 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
Loading