File tree Expand file tree Collapse file tree 4 files changed +70
-0
lines changed Expand file tree Collapse file tree 4 files changed +70
-0
lines changed Original file line number Diff line number Diff line change 1+ on : pull_request
2+
3+ jobs :
4+ build-pull-request :
5+ runs-on : ubuntu-latest
6+
7+ steps :
8+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
9+ - run : |
10+ ./gradlew build
Original file line number Diff line number Diff line change 1+ on :
2+ push :
3+ branches : [ main ]
4+
5+ jobs :
6+ publish-pages :
7+ runs-on : ubuntu-latest
8+ if : github.event.repository.fork == false
9+
10+ # Required for the `deploy-pages` action
11+ permissions :
12+ pages : write
13+ id-token : write
14+
15+ steps :
16+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
17+ - run : |
18+ export JAVA_HOME=$JAVA_HOME_21_X64 # Remove when ubuntu-latest updates to Java 21
19+ ./gradlew librarianStaticContent
20+ - uses : actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1
21+ with :
22+ path : " build/static"
23+ - uses : actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5
Original file line number Diff line number Diff line change 1+ on :
2+ push :
3+ tags :
4+ - ' *'
5+
6+ jobs :
7+ publish-release :
8+ runs-on : ubuntu-latest
9+ if : github.event.repository.fork == false
10+
11+ steps :
12+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
13+ - run : |
14+ LIBRARIAN_RELEASE=true ./gradlew librarianPublishToMavenCentral
15+ env:
16+ LIBRARIAN_SONATYPE_PASSWORD: ${{ secrets.CENTRAL_PORTAL_PASSWORD }}
17+ LIBRARIAN_SONATYPE_USERNAME: ${{ secrets.CENTRAL_PORTAL_USERNAME }}
18+ LIBRARIAN_SIGNING_PRIVATE_KEY: ${{ secrets.GPG_KEY }}
19+ LIBRARIAN_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.GPG_KEY_PASSWORD }}
Original file line number Diff line number Diff line change 1+ on :
2+ push :
3+ branches : [ main ]
4+
5+ jobs :
6+ publish-snapshot :
7+ runs-on : ubuntu-latest
8+ if : github.event.repository.fork == false
9+
10+ steps :
11+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
12+ - run : |
13+ LIBRARIAN_VERSION_SHA1=$GITHUB_SHA ./gradlew librarianPublishToGcs
14+ ./gradlew librarianPublishToSnapshots
15+ env:
16+ LIBRARIAN_SONATYPE_PASSWORD: ${{ secrets.CENTRAL_PORTAL_PASSWORD }}
17+ LIBRARIAN_SONATYPE_USERNAME: ${{ secrets.CENTRAL_PORTAL_USERNAME }}
18+ LIBRARIAN_GOOGLE_SERVICES_JSON: ${{ secrets.GOOGLE_SERVICES_JSON }}
You can’t perform that action at this time.
0 commit comments