-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (49 loc) · 1.37 KB
/
create_release.yml
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Upload Release Asset
on:
push:
branches:
- master
workflow_run:
workflows:
- "tests.yml"
types:
- completed
jobs:
build-project:
name: Upload Release Asset
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install requests
- name: Build zip file
run: scripts/build_zip_file.py
- name: Print a message
run: echo "Starting the Python release process."
- name: Create Release
id: create_release
run: |
scripts/create_release.py || exit 1
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
- name: Print another message
run: echo "Python release process completed."
- name: Create and Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
UPLOAD_URL: ${{ steps.create_release.outputs.upload_url }}
with:
upload_url: ${{ env.UPLOAD_URL }}
asset_path: ./Overwatch Rank Tracker.zip
asset_name: Overwatch Rank Tracker.zip
asset_content_type: application/zip