diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..f5bd578 --- /dev/null +++ b/.github/workflows/release.yml @@ -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 \ No newline at end of file diff --git a/.gitignore b/.gitignore index b3a4c23..9f5c8b6 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ /** !/lib/**/* !/.vscode/**/* +!/.github/**/* !/preview/**/* !/* @@ -14,4 +15,5 @@ test.py # Generated -/**/__pycache__ \ No newline at end of file +/**/__pycache__ +download.spec \ No newline at end of file