release_finagle #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: release-finagle | |
# Publishes twitter/finagle. | |
# | |
# Expects a repository dispatch event: https://developer.github.com/v3/repos/#create-a-repository-dispatch-event | |
# in the form of JSON data POST to /repos/twitter/dodo/dispatches: | |
# { | |
# "event_type": "release_finagle", | |
# "client_payload": { | |
# "phab_id": "D12345", | |
# "version": "17.12.0", | |
# "dry_run": true | |
# } | |
# } | |
env: | |
JAVA_OPTS: "-Dsbt.log.noformat=true" | |
PGP_KEY: ${{ secrets.PGP_KEY }} | |
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} | |
PGP_SECRET: ${{ secrets.PGP_SECRET }} | |
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | |
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | |
BINTRAY_USER: ${{ secrets.BINTRAY_USER }} | |
BINTRAY_PASS: ${{ secrets.BINTRAY_PASS }} | |
API_USER: ${{ secrets.API_USER }} | |
API_KEY: ${{ secrets.API_KEY }} | |
defaults: | |
run: | |
shell: bash | |
on: | |
repository_dispatch: | |
types: [release_finagle] | |
jobs: | |
release_finagle: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/setup-java@v1 | |
with: | |
java-version: 1.8 | |
- uses: olafurpg/setup-scala@v10 | |
with: | |
java-version: [email protected] | |
- uses: olafurpg/setup-gpg@v3 | |
- name: setup/gpg-secret | |
run: ${{ github.workspace }}/bin/gpg-init | |
- name: setup/sbt | |
run: | | |
cp -r ${{ github.workspace }}/bin/.sbt ~/.sbt | |
# ensure upstreams have merged develop branch into release | |
- name: checkout/util | |
uses: actions/[email protected] | |
with: | |
repository: twitter/util | |
token: ${{ secrets.API_KEY }} | |
ref: release | |
path: util | |
- name: merge/util | |
run: | | |
${{ github.workspace }}/bin/merge --phab-id ${{ github.event.client_payload.phab_id }} --dry-run ${{ github.event.client_payload.dry_run }} --verbose util | |
working-directory: ${{ github.workspace }}/util | |
- name: checkout/scrooge | |
uses: actions/[email protected] | |
with: | |
repository: twitter/scrooge | |
token: ${{ secrets.API_KEY }} | |
ref: release | |
path: scrooge | |
- name: merge/scrooge | |
run: | | |
${{ github.workspace }}/bin/merge --phab-id ${{ github.event.client_payload.phab_id }} --dry-run ${{ github.event.client_payload.dry_run }} --verbose scrooge | |
working-directory: ${{ github.workspace }}/scrooge | |
# run dodo to build finagle dependencies | |
- name: dodo/build | |
uses: twitter/dodo-build@v3 | |
with: | |
branch: release | |
project: finagle | |
no-test: true | |
publish-m2: true | |
verbose: true | |
dry-run: ${{ github.event.client_payload.dry_run }} | |
# checkout finagle and release | |
- name: checkout/finagle | |
uses: actions/[email protected] | |
with: | |
repository: twitter/finagle | |
token: ${{ secrets.API_KEY }} | |
ref: release | |
path: finagle | |
- name: release/finagle | |
run: | | |
${{ github.workspace }}/bin/publish --phab-id ${{ github.event.client_payload.phab_id }} --version ${{ github.event.client_payload.version }} --dry-run ${{ github.event.client_payload.dry_run }} --verbose finagle | |
working-directory: ${{ github.workspace }}/finagle |