docspell/.github/workflows/release.yml

47 lines
1.5 KiB
YAML
Raw Normal View History

name: Release
on:
push:
tags:
- 'v*'
jobs:
release:
2023-08-09 13:32:37 +00:00
runs-on: ubuntu-22.04
strategy:
fail-fast: true
matrix:
2023-11-06 09:51:09 +00:00
java: [ 'openjdk@1.17' ]
steps:
- uses: actions/checkout@v4.1.1
with:
fetch-depth: 0
- uses: olafurpg/setup-scala@v14
with:
java-version: ${{ matrix.java }}
2023-03-09 11:01:14 +00:00
- uses: jorelali/setup-elm@v5
with:
elm-version: 0.19.1
- uses: bahmutov/npm-install@v1
with:
working-directory: modules/webapp
# - name: Coursier cache
# uses: coursier/cache-action@v6
- name: Set current version
run: echo "DOCSPELL_VERSION=$(cat version.sbt | grep version | cut -d= -f2 | xargs)" >> $GITHUB_ENV
- name: sbt make-pkg (${{ env.DOCSPELL_VERSION }})
run: sbt make-pkg
2024-03-07 20:46:14 +00:00
env:
SBT_OPTS: "-Xmx2G -Xss4m"
- uses: meeDamian/github-release@2.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: Docspell ${{ env.DOCSPELL_VERSION }}
gzip: false
draft: true
prerelease: false
allow_override: false
files: >
modules/restserver/target/docspell-restserver_${{ env.DOCSPELL_VERSION }}_all.deb
modules/restserver/target/universal/docspell-restserver-${{ env.DOCSPELL_VERSION }}.zip
modules/joex/target/docspell-joex_${{ env.DOCSPELL_VERSION }}_all.deb
modules/joex/target/universal/docspell-joex-${{ env.DOCSPELL_VERSION }}.zip