-
Notifications
You must be signed in to change notification settings - Fork 4
48 lines (41 loc) · 1.51 KB
/
main.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
# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
create:
tags:
- "*"
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
clojars:
runs-on: ubuntu-latest
steps:
# This step checks out a copy of your repository.
- uses: actions/checkout@v2
- uses: jlesquembre/[email protected]
env:
CLOJARS_USERNAME: ${{ secrets.CLOJARS_USERNAME }}
CLOJARS_PASSWORD: ${{ secrets.CLOJARS_PASSWORD }}
USE_GIT_REF: ${{ secrets.USE_GIT_REF }}
# This workflow contains a single job called "build"
build:
needs: clojars
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '8'
- uses: DeLaGuardo/[email protected]
with:
cli: 1.10.1.693 # Clojure CLI based on tools.deps
- run: cd examples; rm -rf .cpcache; rm -rf .shadow-cljs; cd public; rm -rf out; cd ..; npm install; clojure -M:release;
- uses: JamesIves/[email protected]
with:
branch: master # The branch the action should deploy to.
folder: examples/public
target-folder: docs # The folder the action should deploy.