-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (47 loc) · 1.46 KB
/
build+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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Build and Release
on:
push:
branches: [ "main" ]
workflow_dispatch: # manual trigger
jobs:
build:
permissions:
contents: write # allow to create a release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Generate requirements.txt
run: |
pip3 install -U pip
pip3 install -U pipenv
pipenv install
pipenv requirements > requirements.txt
- name: Build
run: ./scripts/make-build.sh
- name: Make Archive
run: tar -cvz -C dist/ jarklin/ -f "dist/jarklin.tgz"
# - name: Install UI-Build
# run: |
# mkdir -p dist/jarklin/web/web-ui/
# ./dist/jarklin/jarklin download-web-ui --dest dist/web-ui.tgz
# tar -xf dist/web-ui.tgz -C dist/jarklin/web/web-ui/
# - name: Make Archive with Web-UI
# run: tar -cvz -C dist/ jarklin/ -f "dist/jarklin.bundled.tgz"
- name: Release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
draft: false
prerelease: false
title: "Jarklin Build"
files: |
dist/jarklin.tgz
# dist/jarklin.bundled.tgz
# dist/web-ui.tgz
# dist/jarklin.whl
# dist/jarklin.deb