-
Notifications
You must be signed in to change notification settings - Fork 4
70 lines (56 loc) · 2.02 KB
/
U2204Py310final.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: LinuxRelease
# Creates a Linux Installer using beeware-briefcase and github actions
# Generates .deb file and appimage for Python 3.10 using Ubuntu 22.04
# Author: Rahul Singh
# https://github.com/codecliff/PhotoGlimmer
# Runs manually, will prompt for release tag
on:
#push:
# branches: [ master ]
#pull_request:
# branches: [ master ]
workflow_dispatch:
inputs: #when run, ask user to input release tag
reltag:
description: "tag for release, eg v1.0.0_linux"
required: true
default: "latest"
permissions:
contents: write
pull-requests: write
repository-projects: write
jobs:
build-multi:
runs-on: ubuntu-22.04
env:
TAGNAME: ${{ inputs.reltag }}
steps:
- uses: actions/checkout@v2 #1
- uses: actions/setup-python@v3 #2
with:
python-version: '3.10.12'
- name: install dependencies #3
run: |
sudo apt update
sudo apt install -yq build-essential git pkg-config python3-dev python3-venv \
libgirepository1.0-dev libcairo2-dev \
gir1.2-webkit2-4.0 libcanberra-gtk3-module libgl1 libglib2.0-0
python -m pip install briefcase
- name: Build linux arifacts #4
run: |
briefcase build
briefcase package linux appimage #this creates appimage file
briefcase package #this creates .deb file on ubuntu
- uses: actions/upload-artifact@v4 #5
with:
name: linuxartifacts
path: "./dist/"
- uses: marvinpinto/action-automatic-releases@latest # {{xyz}}varaibles not available in uses
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "${{ inputs.reltag }}"
prerelease: false
title: "Build ${{ github.event.inputs.reltag }}" #same as inputs.reltag
files: |
./dist/*.AppImage
./dist/*.deb