-
Notifications
You must be signed in to change notification settings - Fork 79
38 lines (35 loc) · 1.04 KB
/
deploy.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
run-name: Jackdaw build
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
- '*publish-snapshot*'
jobs:
run_checks:
uses: ./.github/workflows/run_checks.yaml
deploy:
needs: run_checks
runs-on: ubuntu-latest
container:
image: clojure:latest
# options: --user 1001 # don't run as root
environment: test
steps:
- name: checkout
uses: actions/checkout@v4
with:
# fetch-tags: true
fetch-depth: 100
- name: deploy
env:
CLOJARS_USERNAME: ${{ secrets.CLOJARS_USERNAME }}
CLOJARS_PASSWORD: ${{ secrets.CLOJARS_PASSWORD }}
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
run: |
git config --global --add safe.directory /__w/jackdaw/jackdaw
apt-get update
apt-get install -y gpg
echo $GPG_PRIVATE_KEY |base64 --decode |gpg --yes --batch --import
export LEIN_GPG=/__w/jackdaw/jackdaw/.circleci/bin/gpg
export REAL_GPG=$(which gpg)
lein do jar, pom, deploy clojars