Skip to content

Commit

Permalink
Create publish-1.0-snapshots.yml (#455)
Browse files Browse the repository at this point in the history
  • Loading branch information
pjfanning authored Jan 29, 2024
1 parent 21cbc3f commit 1e4fa10
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/publish-1.0-snapshots.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Publish nightly 1.0 snapshots

on:
schedule:
- cron: "0 3 * * *"
workflow_dispatch:

jobs:
publish-artifacts:
name: Publish 1.0 artifacts to Apache Nexus
runs-on: ubuntu-latest
if: github.repository == 'apache/incubator-pekko-http'
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
ref: 1.0.x

- name: Set up JDK 8
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 8

- name: Cache Coursier cache
uses: coursier/cache-action@v6

- name: Install graphviz
run: sudo apt-get install -y graphviz

- name: Publish to Apache Maven repo
run: sbt +publish
env:
NEXUS_USER: ${{ secrets.NEXUS_USER }}
NEXUS_PW: ${{ secrets.NEXUS_PW }}
JAVA_OPTS: "-verbose:gc -Xmx4g"

0 comments on commit 1e4fa10

Please sign in to comment.