Skip to content

Update Changelog for v2.1.1 #24

Update Changelog for v2.1.1

Update Changelog for v2.1.1 #24

Workflow file for this run

name: cd
on:
push:
tags:
- "v*"
jobs:
tagged-release:
name: Tagged Release
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12.x'
- name: Install Poetry
uses: abatilo/[email protected]
with:
poetry-version: '1.6.1'
- name: Configure poetry
run: poetry config virtualenvs.in-project true
- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel
poetry install -E gui
- name: Cache prod.keys
id: cache-prod-keys
uses: actions/cache@v3
with:
path: prod.keys
key: prod-keys
- name: Save prod.keys safely
if: steps.cache-prod-keys.outputs.cache-hit != 'true'
env:
PROD_KEYS: ${{ secrets.PROD_KEYS }}
run: $env:PROD_KEYS | Out-File prod.keys
- name: Download Homebrew NROs
run: |
aria2c https://switch.cdn.fortheusers.org/zips/hbmenu.zip
7z x hbmenu.zip hbmenu.nro
aria2c https://switch.cdn.fortheusers.org/zips/aio-switch-updater.zip
7z x aio-switch-updater.zip switch/aio-switch-updater/aio-switch-updater.nro
Move-Item -Path .\switch\aio-switch-updater\aio-switch-updater.nro -Destination .
- name: Pre-build some NSP forwarders
run: |
poetry run nton build "hbmenu.nro" --name "Homebrew Menu" --sdmc "/hbmenu.nro"
poetry run nton build "aio-switch-updater.nro" --name "AIO-Switch-Updater" --sdmc "/switch/aio-switch-updater/aio-switch-updater.nro"
- name: Upload NSPs
uses: actions/[email protected]
with:
name: Pre-built NSPs
path: C:/Users/runneradmin/Desktop/NTON/*.nsp
- name: Build EXE with PyInstaller
run: poetry run python pyinstaller.py
- name: Create Windows Installer with Inno Setup
run: |
iscc setup.iss
mv dist/NTON-*.exe .
- name: Build Portable EXE with PyInstaller
run: |
poetry run python pyinstaller.py --one-file
mv dist/NTON.exe NTON-${{ github.ref_name }}-portable.exe
- name: Build a wheel
run: poetry build
- name: Upload wheel
uses: actions/upload-artifact@v3
with:
name: Python Wheel
path: "dist/*.whl"
- name: Deploy release
uses: marvinpinto/action-automatic-releases@latest
with:
prerelease: false
repo_token: "${{ secrets.GITHUB_TOKEN }}"
files: |
dist/*.whl
NTON-*.exe
NTON-*-portable.exe
C:/Users/runneradmin/Desktop/NTON/*.nsp
- name: Publish to PyPI
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
run: poetry publish