Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
taig committed Nov 20, 2024
1 parent 5455fc0 commit 410ecf3
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 54 deletions.
36 changes: 15 additions & 21 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,24 +46,18 @@ jobs:
- lint
- test
steps:
name: Deploy
runs-on: ubuntu-latest
needs:
- lint
- test
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Java JDK
uses: actions/setup-java@v4
with:
cache: sbt
distribution: temurin
java-version: '17'
- name: Release
run: sbt ci-release
env:
PGP_PASSPHRASE: ${{secrets.PGP_PASSPHRASE}}
PGP_SECRET: ${{secrets.PGP_SECRET}}
SONATYPE_PASSWORD: ${{secrets.SONATYPE_PASSWORD}}
SONATYPE_USERNAME: ${{secrets.SONATYPE_USERNAME}}
- name: Checkout
uses: actions/checkout@v4
- name: Setup Java JDK
uses: actions/setup-java@v4
with:
cache: sbt
distribution: temurin
java-version: '17'
- name: Release
run: sbt ci-release
env:
PGP_PASSPHRASE: ${{secrets.PGP_PASSPHRASE}}
PGP_SECRET: ${{secrets.PGP_SECRET}}
SONATYPE_PASSWORD: ${{secrets.SONATYPE_PASSWORD}}
SONATYPE_USERNAME: ${{secrets.SONATYPE_USERNAME}}
36 changes: 15 additions & 21 deletions .github/workflows/taig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,24 +46,18 @@ jobs:
- lint
- test
steps:
name: Deploy
runs-on: ubuntu-latest
needs:
- lint
- test
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Java JDK
uses: actions/setup-java@v4
with:
cache: sbt
distribution: temurin
java-version: '17'
- name: Release
run: sbt ci-release
env:
PGP_PASSPHRASE: ${{secrets.PGP_PASSPHRASE}}
PGP_SECRET: ${{secrets.PGP_SECRET}}
SONATYPE_PASSWORD: ${{secrets.SONATYPE_PASSWORD}}
SONATYPE_USERNAME: ${{secrets.SONATYPE_USERNAME}}
- name: Checkout
uses: actions/checkout@v4
- name: Setup Java JDK
uses: actions/setup-java@v4
with:
cache: sbt
distribution: temurin
java-version: '17'
- name: Release
run: sbt ci-release
env:
PGP_PASSPHRASE: ${{secrets.PGP_PASSPHRASE}}
PGP_SECRET: ${{secrets.PGP_SECRET}}
SONATYPE_PASSWORD: ${{secrets.SONATYPE_PASSWORD}}
SONATYPE_USERNAME: ${{secrets.SONATYPE_USERNAME}}
14 changes: 2 additions & 12 deletions project/GitHubActionsGenerator.scala
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,7 @@ object GitHubActionsGenerator {
"jobs" := Json.obj(
"lint" := Job.Lint,
"test" := Job.Test,
"deploy" := Json.obj(
"name" := "Deploy",
"runs-on" := "ubuntu-latest",
"needs" := List("lint", "test"),
"steps" := Job.Deploy
)
"deploy" := Job.Deploy
)
)

Expand All @@ -109,12 +104,7 @@ object GitHubActionsGenerator {
"jobs" := Json.obj(
"lint" := Job.Lint,
"test" := Job.Test,
"deploy" := Json.obj(
"name" := "Deploy",
"runs-on" := "ubuntu-latest",
"needs" := List("lint", "test"),
"steps" := Job.Deploy
)
"deploy" := Job.Deploy
)
)

Expand Down

0 comments on commit 410ecf3

Please sign in to comment.