forked from profunktor/redis4cats
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (31 loc) · 932 Bytes
/
release.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
name: Release
on:
# to allow the manual trigger workflows
workflow_dispatch: {}
push:
branches:
- series/1.x # CE3
tags:
- "v1.*"
jobs:
build:
name: Publish
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0 # fetch all branches & tags
- name: "Install Nix ❄️"
uses: cachix/install-nix-action@v22
- name: "Install Cachix ❄️"
uses: cachix/cachix-action@v12
with:
name: redis4cats
signingKey: "${{ secrets.CACHIX_SIGNING_KEY }}"
- name: "Publish ${{ github.ref }} 🚀"
env:
PGP_PASSPHRASE: "${{ secrets.PGP_PASSPHRASE }}"
PGP_SECRET: "${{ secrets.PGP_SECRET }}"
SONATYPE_PASSWORD: "${{ secrets.SONATYPE_PASSWORD }}"
SONATYPE_USERNAME: "${{ secrets.SONATYPE_USERNAME }}"
run: nix develop -c sbt 'ci-release'