-
-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (34 loc) · 1.01 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
39
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: write private key
run: echo "${{ secrets.GPG_PRIVATE_KEY }}" >> gpg_private_key
- name: publish
run: |
earthly --ci --allow-privileged --push \
--secret GPG_PASSPHRASE=${{ secrets.GPG_PASSPHRASE }} \
--secret OSSRH_TOKEN_USERNAME=${{ secrets.OSSRH_TOKEN_USERNAME }} \
--secret OSSRH_TOKEN_PASSWORD=${{ secrets.OSSRH_TOKEN_PASSWORD }} \
+ci-publish \
--PIPELINE_ID=${{ env.PIPELINE_ID }}