-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (41 loc) · 1.11 KB
/
release.yaml
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
name: Build and Release
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Setup Script
run: ./linux_setup.sh
- name: Python requisite installs
run: pip3 install -r requirements.txt pyinstaller
- name: App creation
run: python3 -m PyInstaller -yF --hidden-import Hamlib rflh.py
- name: Test App
run: cp rotor.conf dist/ && chmod +x ./dist/rflh && ./dist/rflh 145 -d
- uses: actions/upload-artifact@v2
with:
name: rflh
path: dist/rflh
release:
runs-on: ubuntu-20.04
needs: [build]
steps:
- uses: actions/checkout@master
- name: Create release
uses: Roang-zero1/github-create-release-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create GitHub release
uses: Roang-zero1/github-upload-release-artifacts-action@master
with:
releaseId: ${{ needs.create_release.outputs.id }}
args: dist/rflh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}