-
Notifications
You must be signed in to change notification settings - Fork 127
56 lines (56 loc) · 1.99 KB
/
release-nightly.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Release Nightly
on:
push:
branches:
- "master"
jobs:
release-nightly:
runs-on: ubuntu-22.04
strategy:
fail-fast: true
matrix:
java: [ '[email protected]' ]
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- uses: olafurpg/setup-scala@v14
with:
java-version: ${{ matrix.java }}
- 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 ci ${{ github.ref }}
run: sbt ci
- name: sbt make-pkg (${{ env.DOCSPELL_VERSION }})
run: sbt make-pkg
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "nightly"
prerelease: true
title: "Docspell Nightly"
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
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker Images (${{ env.DOCSPELL_VERSION }})
run: ./docker/dockerfiles/build.sh ${{ env.DOCSPELL_VERSION }} --push