forked from TheAssassin/pyuploadtool
-
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (48 loc) · 1.48 KB
/
continuous.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
name: Continuous release
on: [push, pull_request]
jobs:
qa:
name: Quality Assurance
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
python3 -m pip install poetry
python3 -m poetry install
- name: Check code formatting with black
run: python3 -m poetry run black --check pyuploadtool/
build-appimage:
name: Build AppImage
needs:
- qa
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build AppImage
run: |
wget https://github.com/TheAssassin/appimagecraft/releases/download/continuous/appimagecraft-x86_64.AppImage
chmod +x appimagecraft-x86_64.AppImage
./appimagecraft-x86_64.AppImage
- name: Archive artifacts
uses: actions/upload-artifact@v2
with:
name: AppImage
path: pyuploadtool*.AppImage*
upload:
name: Create release and upload artifacts
needs:
- build-appimage
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: actions/download-artifact@v2
- name: Inspect directory after downloading artifacts
run: ls -alFR
- name: Create release and upload artifacts
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd AppImage
chmod +x pyuploadtool-x86_64.AppImage
./pyuploadtool-x86_64.AppImage pyuploadtool-x86_64.AppImage