Skip to content

Commit

Permalink
Add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Saltssaumure committed Apr 14, 2024
1 parent ffc33ef commit 95b3148
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Release Linux package

on:
push:
tags:
- v*

jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Python 3.12
uses: actions/setup-python@v4
with:
python-version: 3.12.x

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -U pyinstaller
- name: Build package
run: pyinstaller download.py

- name: Release package
uses: ncipollo/release-action@v1
with:
artifacts: dist/*
makeLatest: true
generateReleaseNotes: true
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/**
!/lib/**/*
!/.vscode/**/*
!/.github/**/*
!/preview/**/*
!/*

Expand All @@ -14,4 +15,5 @@
test.py

# Generated
/**/__pycache__
/**/__pycache__
download.spec

0 comments on commit 95b3148

Please sign in to comment.