allow for automated release
This commit is contained in:
parent
d660c059d4
commit
915857754d
1 changed files with 38 additions and 0 deletions
38
.github/workflows/test-and-release.yml
vendored
Normal file
38
.github/workflows/test-and-release.yml
vendored
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
name: Clojure CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- "v*"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-and-release:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- uses: actions/setup-java@v2
|
||||||
|
with:
|
||||||
|
distribution: 'adopt'
|
||||||
|
java-version: '11'
|
||||||
|
- name: Setup Clojure
|
||||||
|
uses: DeLaGuardo/setup-clojure@master
|
||||||
|
with:
|
||||||
|
tools-deps: '1.10.3.986'
|
||||||
|
- name: Cache All The Things
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.m2/repository
|
||||||
|
~/.gitlibs
|
||||||
|
~/.clojure
|
||||||
|
~/.cpcache
|
||||||
|
key: ${{ runner.os }}-${{ hashFiles('**/deps.edn') }}
|
||||||
|
- name: Run Tests
|
||||||
|
run: clojure -T:build ci :snapshot false
|
||||||
|
- name: Deploy Release
|
||||||
|
run: clojure -T:build deploy :snapshot false
|
||||||
|
env:
|
||||||
|
CLOJARS_PASSWORD: ${{secrets.DEPLOY_TOKEN}}
|
||||||
|
CLOJARS_USERNAME: ${{secrets.DEPLOY_USERNAME}}
|
||||||
Loading…
Reference in a new issue