Merge pull request #2 from kepler16/jv/operations-rename #19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Packages | |
on: [push] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
services: | |
mongo: | |
image: mongo:6 | |
ports: | |
- 27017:27017 | |
steps: | |
- name: Checkout git repo | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Fetch tags | |
run: git fetch --tags origin | |
- uses: actions/setup-java@v2 | |
with: | |
distribution: 'temurin' | |
java-version: '21' | |
- uses: extractions/setup-just@v1 | |
- uses: DeLaGuardo/[email protected] | |
with: | |
cli: latest | |
- name: Test | |
run: | | |
just test | |
- name: Build | |
run: | | |
just build \ | |
":snapshot?" ${{ github.ref_name != 'master' }} \ | |
":include-unchanged?" false | |
- name: Release | |
env: | |
CLOJARS_USERNAME: infrastructure-kepler16-com | |
CLOJARS_PASSWORD: ${{ secrets.CLOJARS_PASSWORD }} | |
run: | | |
just release \ | |
":snapshot?" ${{ github.ref_name != 'master' }} \ | |
":include-unchanged?" false \ | |
":create-tags?" ${{ github.ref_name == 'master' }} |