forked from lukin/keywind
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 1 KB
/
ci.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
name: CI/CD
on: push
jobs:
ci_cd:
runs-on: ubuntu-latest
timeout-minutes: 10
env:
CI: true
steps:
- name: Checkout ${{ github.sha }}
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- name: Use Java
uses: actions/setup-java@v4
with:
java-version: 21
distribution: temurin
- name: Install NPM dependencies
run: npm ci
- name: Lint
run: npm run lint --if-present
- name: Build
run: npm run build --if-present
- name: Test
run: npm run test --if-present
- name: Upload jar
uses: actions/upload-artifact@v4
with:
path: dist/bluedot-keycloak-theme.jar
- name: Release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
with:
files: dist/bluedot-keycloak-theme.jar