Skip to content

Commit

Permalink
Configure github actions release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
julienvincent committed Jan 18, 2024
1 parent 90249ce commit 9d0eb8b
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
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: ci-kepler16-com
CLOJARS_PASSWORD: ${{ secrets.CLOJARS_PASSWORD }}
run: |
just release \
":snapshot?" ${{ github.ref_name != 'master' }} \
":include-unchanged?" false \
":create-tags?" ${{ github.ref_name == 'master' }}

0 comments on commit 9d0eb8b

Please sign in to comment.