From e03ec25009e63fae89f5ee31ffe2428a714b3a4d Mon Sep 17 00:00:00 2001 From: hdeadman Date: Tue, 19 Jul 2022 22:18:51 -0400 Subject: [PATCH 1/2] Add build of compiled python app on push to main branch - checks out code - installs dependencies (or downloads pip cache) - installs cx_Freeze - builds python executable - uploads compiled folder as artifact People can download the zipped artifact from the build action. --- .github/workflows/build.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..b104145a --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,36 @@ +name: Build + +env: + PYTHON_VERSION: '3.10' + +on: + push: + branches: + - 'main' + +jobs: + build: + runs-on: windows-latest + steps: + - name: Checkout Code + uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: ${{ env.PYTHON_VERSION }} + cache: 'pip' + cache-dependency-path: 'requirements.txt' + - name: Install Dependencies + run: 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 }}/** From 31825536c04f19582ff9728645a8c1d3cde465b0 Mon Sep 17 00:00:00 2001 From: hdeadman Date: Sun, 24 Jul 2022 00:32:11 -0400 Subject: [PATCH 2/2] update readme --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 670db88f..6811b3b5 100644 --- a/README.md +++ b/README.md @@ -58,6 +58,20 @@ > `-` View all skins: . +### Letting Github Build It: + +The latest commits to the `main` branch will be built by a [Github Actions](https://github.com/isaacKenyon/VALORANT-rank-yoinker/actions) workflow +and a successful build should result in a compiled artifact that you can download and try out. +See the [Actions tab](https://github.com/isaacKenyon/VALORANT-rank-yoinker/actions), click on the `Build` workflow, +select a particular workflow run, and it should have an artifact available for download. + +If you want to make a small change to the application, you can: +1) [Fork](https://github.com/isaacKenyon/VALORANT-rank-yoinker/fork) this project. +2) Change the code in your forked repository. +3) Let the Github Actions workflow build vRY.exe for you. +4) Download it and test it. +5) Submit a Pull Request if you would like your change included in future releases. + ## What about that Tweet? The [Tweet](https://twitter.com/PlayVALORANT/status/1539728676815642624), which details Riot's API policies outlines how