Skip to content

Add support for domain and https for torrest service #110

Add support for domain and https for torrest service

Add support for domain and https for torrest service #110

Workflow file for this run

name: build
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
create:
tags:
- v*
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
max-parallel: 5
matrix:
python-version: [ 2.7, 3.7 ]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8
- name: Lint
run: flake8
release:
name: Release
runs-on: ubuntu-latest
needs: build
if: success() && github.event_name == 'create' && startsWith(github.ref, 'refs/tags/')
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build assets
run: ./scripts/build.sh
- name: Perform release
run: |
assets=()
for asset in ./build/*.zip; do
assets+=("-a" "${asset}")
done
git_tag="$(sed 's|refs/tags/||' <<< "${{ github.ref }}")"
hub release create "${assets[@]}" -m "${git_tag}" "${git_tag}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}