-
-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (32 loc) · 1 KB
/
commit.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
name: Commit check
on:
push:
branches:
- master
env:
COMMIT_OWNER: ${{ github.event.pusher.name }}
COMMIT_SHA: ${{ github.sha }}
PIPELINE_ID: ${{ github.run_number }}
FORCE_COLOR: 1
jobs:
commit:
name: commit
runs-on: ubuntu-latest
steps:
- uses: earthly/actions-setup@v1
with:
version: "latest"
- name: checkout
uses: actions/checkout@v4
- name: check
run: |
earthly --ci --allow-privileged +ci-check \
--PIPELINE_ID=${{ env.PIPELINE_ID }}
- name: publish
run: |
echo "${{ secrets.MAVEN_GPG_PRIVATE_KEY }}" > ./maven_private_key &&
earthly --ci --allow-privileged --push +ci-publish \
--PIPELINE_ID=${{ env.PIPELINE_ID }} \
--MAVEN_SONATYPE_USERNAME=${{ secrets.MAVEN_SONATYPE_USERNAME }} \
--MAVEN_SONATYPE_PASSWORD=${{ secrets.MAVEN_SONATYPE_PASSWORD }} \
--MAVEN_GPG_PRIVATE_KEY_PASSWORD=${{ secrets.MAVEN_GPG_PRIVATE_KEY_PASSWORD }}