Skip to content

Commit

Permalink
Reckless damage to main branch, trying out isolated releasing
Browse files Browse the repository at this point in the history
  • Loading branch information
Guardian Automated Maven Release committed Dec 2, 2023
1 parent 1b613e1 commit 6ef3c17
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 2 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/isolated-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Isolated Release
on:
workflow_dispatch:

jobs:
create-artifacts:
name: Create unsigned artifacts
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: corretto
java-version: 17
cache: sbt
- name: Generate artifacts
run: sbt publish
- uses: actions/cache/save@v3
id: cache
with:
path: /tmp/funky
key: ${{ github.run_id }}-${{ github.run_attempt }}


sign-and-release:
name: Sign and release
needs: create-artifacts
runs-on: ubuntu-latest
permissions:
contents: write
env:
SONATYPE_USERNAME: guardian.automated.maven.release
SONATYPE_PASSWORD: ${{ secrets.AUTOMATED_MAVEN_RELEASE_SONATYPE_PASSWORD }}
steps:
- uses: actions/cache/restore@v3
id: cache
with:
path: /tmp/funky
key: ${{ github.run_id }}-${{ github.run_attempt }}
- name: Check contents
run: |
ls -lR /tmp/funky
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ThisBuild / crossScalaVersions := Seq(
)
ThisBuild / scalacOptions := Seq("-deprecation", "-release","11")
ThisBuild / licenses := Seq("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0"))

ThisBuild / versionScheme := Some("early-semver")

lazy val baseSettings = Seq(
libraryDependencies ++= Seq(
Expand Down
2 changes: 1 addition & 1 deletion sonatype.sbt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
sonatypeProfileName := "com.gu"

ThisBuild / publishTo := sonatypePublishToBundle.value
ThisBuild / publishTo := Some(Resolver.file("roberto-test", file("/tmp/funky"))) // sonatypePublishToBundle.value

ThisBuild / organization := "com.gu.etag-caching"

Expand Down

0 comments on commit 6ef3c17

Please sign in to comment.