-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (31 loc) · 907 Bytes
/
automatic-release.yml
File metadata and controls
34 lines (31 loc) · 907 Bytes
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
name: "auto-release"
on:
push:
branches:
- "master"
jobs:
pre-release:
name: "Auto Release"
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@master
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build setuptools wheel
- name: Build
run: |
python -m build
pip install dist/*.whl
echo "PACKAGE_VERSION=$(python -c 'import ProxyEater; print(ProxyEater.__version__)')" >> $GITHUB_ENV
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "${{ env.PACKAGE_VERSION }}"
title: "Auto Build"
files: |
dist/*