-
Notifications
You must be signed in to change notification settings - Fork 56
32 lines (32 loc) · 1.01 KB
/
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
name: Release
on:
push:
tags:
- 'v*'
jobs:
release:
runs-on: ubuntu-22.04
strategy:
fail-fast: true
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- uses: cachix/install-nix-action@v26
- name: Coursier cache
uses: coursier/cache-action@v6
- name: Set current version
run: echo "SHARRY_VERSION=$(cat version.sbt | grep version | cut -d= -f2 | xargs)" >> $GITHUB_ENV
- name: sbt make-pkg (${{ env.SHARRY_VERSION }})
run: nix develop .#ci --command sbt make-pkg
- uses: meeDamian/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: Sharry ${{ env.SHARRY_VERSION }}
gzip: false
draft: true
prerelease: false
allow_override: false
files: >
modules/restserver/target/sharry-restserver_${{ env.SHARRY_VERSION }}_all.deb
modules/restserver/target/universal/sharry-restserver-${{ env.SHARRY_VERSION }}.zip