-
Notifications
You must be signed in to change notification settings - Fork 26
94 lines (92 loc) · 3.2 KB
/
finagle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
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/checkout@v2.3.4
- uses: actions/setup-java@v1
with:
java-version: 1.8
- uses: olafurpg/setup-scala@v10
with:
java-version: adopt@1.8
- 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/checkout@v2.3.4
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/checkout@v2.3.4
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/checkout@v2.3.4
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