Merge pull request #185 from juliancasaburi/feature/weapons-outlaw #144
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}/** |