-
-
Notifications
You must be signed in to change notification settings - Fork 9
53 lines (52 loc) · 1.27 KB
/
continuous-deployment-workflow.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: cd
on:
push:
tags:
- "v?[0-9]+.[0-9]+.[0-9]+*"
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18'
- uses: actions/setup-java@v3
with:
distribution: 'microsoft'
java-version: '17'
- uses: DeLaGuardo/[email protected]
with:
lein: 2.10.0
- uses: browser-actions/setup-chrome@v1
- run: npm -g install karma-cli
- run: |
npm ci
lein ci
release:
name: Release
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: '18'
- uses: actions/setup-java@v3
with:
distribution: 'microsoft'
java-version: '17'
- uses: DeLaGuardo/[email protected]
with:
lein: 2.10.0
- name: Run lein release
env:
CLOJARS_USERNAME: ${{ secrets.CLOJARS_USERNAME }}
CLOJARS_TOKEN: ${{ secrets.CLOJARS_TOKEN }}
GITHUB_USERNAME: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
lein release