-
Notifications
You must be signed in to change notification settings - Fork 143
53 lines (40 loc) · 1.22 KB
/
build.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
name: Build
env:
PYTHON_VERSION: '3.10'
on:
push:
branches:
- 'main'
pull_request:
types: [review_requested]
jobs:
specific_review_requested:
runs-on: windows-latest
steps:
- run: echo 'A review was requested from the devs'
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: pip
cache-dependency-path: 'requirements.txt'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Install cx_Freeze
run: pip install cx_Freeze
- name: Build Native Executable
run: python setup.py build
- name: Get commit hash
id: commit
uses: pr-mpt/actions-commit-hash@v1
- name: Upload Compiled Version
uses: actions/upload-artifact@v3
with:
name: VALORANT-rank-yoinker-${{ steps.commit.outputs.short }}
path: build/exe.win-amd64-${{ env.PYTHON_VERSION }}/**