-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 1.2 KB
/
cd.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
name: Continuous Deployment
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Install dependencies
run: |
poetry install
- name: Run Pyinstaller
run: |
poetry run pyinstaller app.spec
- name: Create a versioned archive of the build
run: |
tar -czf proton-desktop-${{ github.event.release.tag_name }}.tar.gz dist/
- name: Upload release asset
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url}}
asset_path: ./proton-desktop-${{ github.event.release.tag_name }}.tar.gz
asset_name: proton-desktop-${{ github.event.release.tag_name }}.tar.gz
asset_content_type: application/gzip