-
Notifications
You must be signed in to change notification settings - Fork 25
94 lines (92 loc) · 3.28 KB
/
scrooge-sbt-plugin.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-scrooge-sbt-plugin
# Publishes twitter/scrooge/scrooge-sbt-plugin.
#
# 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_scrooge_sbt_plugin",
# "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_scrooge_sbt_plugin]
jobs:
release_scrooge_sbt_plugin:
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/finagle
uses: actions/[email protected]
with:
repository: twitter/finagle
token: ${{ secrets.API_KEY }}
ref: release
path: finagle
- name: merge/finagle
run: |
${{ github.workspace }}/bin/merge --phab-id ${{ github.event.client_payload.phab_id }} --dry-run ${{ github.event.client_payload.dry_run }} --verbose finagle
working-directory: ${{ github.workspace }}/finagle
# run dodo to build scrooge dependencies
- name: dodo/build
uses: twitter/dodo-build@v3
with:
branch: release
project: scrooge
no-test: true
publish-m2: true
verbose: true
dry-run: ${{ github.event.client_payload.dry_run }}
# checkout scrooge and release
- name: checkout/scrooge
uses: actions/[email protected]
with:
repository: twitter/scrooge
token: ${{ secrets.API_KEY }}
ref: release
path: scrooge
- name: release/scrooge-sbt-plugin
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 scrooge-sbt-plugin
working-directory: ${{ github.workspace }}/scrooge