2024-05-22 02:07:34 +03:00
|
|
|
name: Release
|
2024-05-18 22:28:44 +03:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: main
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [windows-latest, ubuntu-latest]
|
|
|
|
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Check out Git repository
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: Install Node.js
|
|
|
|
uses: actions/setup-node@v4
|
|
|
|
with:
|
|
|
|
node-version: 20.11.1
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: yarn
|
|
|
|
|
2024-06-27 16:51:13 +03:00
|
|
|
- name: Install Python
|
|
|
|
uses: actions/setup-python@v5
|
|
|
|
with:
|
|
|
|
python-version: 3.9
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: pip install -r requirements.txt
|
|
|
|
|
|
|
|
- name: Build with cx_Freeze
|
|
|
|
run: python torrent-client/setup.py build
|
|
|
|
|
2024-05-18 22:28:44 +03:00
|
|
|
- name: Build Linux
|
|
|
|
if: matrix.os == 'ubuntu-latest'
|
2024-07-16 16:38:06 +03:00
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install -y libarchive-tools
|
|
|
|
yarn build:linux
|
2024-05-18 22:28:44 +03:00
|
|
|
env:
|
2024-06-23 01:11:32 +03:00
|
|
|
MAIN_VITE_API_URL: ${{ vars.MAIN_VITE_API_URL }}
|
2024-09-22 22:20:45 +03:00
|
|
|
MAIN_VITE_AUTH_URL: ${{ vars.MAIN_VITE_AUTH_URL }}
|
2024-06-28 22:27:22 +03:00
|
|
|
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
|
2024-06-28 23:25:03 +03:00
|
|
|
MAIN_VITE_SENTRY_DSN: ${{ vars.MAIN_VITE_SENTRY_DSN }}
|
2024-05-18 22:28:44 +03:00
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
|
|
|
- name: Build Windows
|
|
|
|
if: matrix.os == 'windows-latest'
|
|
|
|
run: yarn build:win
|
|
|
|
env:
|
2024-06-23 01:11:32 +03:00
|
|
|
MAIN_VITE_API_URL: ${{ vars.MAIN_VITE_API_URL }}
|
2024-09-22 22:20:45 +03:00
|
|
|
MAIN_VITE_AUTH_URL: ${{ vars.MAIN_VITE_AUTH_URL }}
|
2024-06-28 22:27:22 +03:00
|
|
|
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
|
2024-06-28 23:25:03 +03:00
|
|
|
MAIN_VITE_SENTRY_DSN: ${{ vars.MAIN_VITE_SENTRY_DSN }}
|
2024-05-18 22:28:44 +03:00
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
2024-09-25 21:48:32 +03:00
|
|
|
- name: Create artifact
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
name: Build-${{ matrix.os }}
|
|
|
|
path: |
|
|
|
|
dist/win-unpacked/**
|
|
|
|
dist/*-portable.exe
|
|
|
|
dist/*.zip
|
|
|
|
dist/*.dmg
|
|
|
|
dist/*.deb
|
|
|
|
dist/*.rpm
|
|
|
|
dist/*.tar.gz
|
|
|
|
dist/*.yml
|
|
|
|
dist/*.blockmap
|
|
|
|
dist/*.pacman
|
|
|
|
|
2024-05-18 22:28:44 +03:00
|
|
|
- name: Release
|
|
|
|
uses: softprops/action-gh-release@v1
|
|
|
|
with:
|
|
|
|
draft: true
|
|
|
|
files: |
|
|
|
|
dist/*.exe
|
|
|
|
dist/*.zip
|
|
|
|
dist/*.dmg
|
|
|
|
dist/*.AppImage
|
|
|
|
dist/*.snap
|
|
|
|
dist/*.deb
|
|
|
|
dist/*.rpm
|
|
|
|
dist/*.tar.gz
|
|
|
|
dist/*.yml
|
|
|
|
dist/*.blockmap
|
2024-07-14 04:03:35 +03:00
|
|
|
dist/*.pacman
|
2024-05-18 22:28:44 +03:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|