-
-
Notifications
You must be signed in to change notification settings - Fork 42
34 lines (31 loc) · 1.03 KB
/
publish.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
name: Publish latest build
on:
push:
branches: [master]
jobs:
deploy:
if: ${{ github.repository == 'SpoonLabs/gumtree-spoon-ast-diff' }}
name: 'Publish package'
runs-on: ubuntu-latest
steps:
- name: Wait for tests to pass
uses: lewagon/[email protected]
with:
ref: ${{ github.ref }}
# Must be same as this job's name
# Reference: https://github.com/lewagon/wait-on-check-action#running-workflow-name
running-workflow-name: 'Publish package'
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: 17
- name: Start deployment
env:
CI_DEPLOY_USERNAME: ${{ secrets.CI_DEPLOY_USERNAME }}
CI_DEPLOY_PASSWORD: ${{ secrets.CI_DEPLOY_PASSWORD }}
SPOONBOT_PARAPHRASE: ${{ secrets.SPOONBOT_PARAPHRASE }}
GPG_SECRET_KEY: ${{ secrets.GPG_SECRET_KEY }}
run: ./.buildscript/deploy_to_maven.sh