-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (52 loc) · 1.52 KB
/
build-executable-debian.yml
File metadata and controls
62 lines (52 loc) · 1.52 KB
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
57
58
59
60
61
62
name: SQL Deployment Tools - Debian
concurrency:
group: release-debian
cancel-in-progress: true
on:
workflow_run:
workflows: ["SQL Deployment Tools CI"]
branches: [main]
types:
- completed
jobs:
install_dependencies:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
name: Checkout Repository
- uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip'
cache-dependency-path: ./requirements/*.txt
- run: pip install -r ./requirements/build.txt
- run: pip install -r ./requirements/test.txt
build:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
name: Checkout Repository
with:
fetch-depth: 0
- name: Build Executable (Debian)
run: |
sh ./platform/linux_debian/build.sh
- uses: actions/upload-artifact@v3
with:
name: exe
path: dist/debian/sql-deployment-tools
name: Upload Executable
- name: 'Get Latest tag'
id: previoustag
uses: "WyriHaximus/github-action-get-previous-tag@v1"
with:
fallback: 1.0.0
- name: Release
uses: softprops/action-gh-release@v1
with:
body_path: "CHANGELOG.md"
tag_name: ${{ steps.previoustag.outputs.tag }}_debian
files: dist/debian/sql-deployment-tools
env:
GITHUB_TOKEN: ${{ secrets.COMMITIZEN }}