-
Notifications
You must be signed in to change notification settings - Fork 8
43 lines (41 loc) · 1.22 KB
/
publish-plugin.yaml
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
name: Publish Plugin
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
- '[0-9]+.[0-9]+.[0-9]+-[a-zA-Z0-9]*'
jobs:
gradle:
runs-on: self-hosted
permissions:
contents: read
packages: write
env:
RELEASE_VERSION: ${{ github.ref_name }}
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
submodules: true
token: ${{ secrets.ACCEPTANCE_TESTS_TOKEN }}
- uses: actions/setup-java@v2
with:
distribution: adopt
java-version: 11
# TODO Ensure all tests pass
- name: Replace data
uses: gradle/[email protected]
with:
arguments: 'replaceData'
build-root-directory: SKIE
env:
SKIE_REPLACEMENT_STRING: ${{ secrets.SKIE_REPLACEMENT_STRING }}
- name: Publish to Maven Central
run: |
./publish.sh
working-directory: SKIE
env:
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ""