Skip to content

chore: bump version #14

chore: bump version

chore: bump version #14

name: Create Prerelease
on:
push:
tags:
- "v[0-100].[0-100].[0-100]-*"
permissions:
contents: write
jobs:
build-exe:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
with:

Check failure on line 21 in .github/workflows/createPreRelease.yml

View workflow run for this annotation

GitHub Actions / Create Prerelease

Invalid workflow file

The workflow is not valid. .github/workflows/createPreRelease.yml (Line: 21, Col: 14): Unexpected value '' .github/workflows/createPreRelease.yml (Line: 22, Col: 9): Unexpected value 'python-version'
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -U pyinstaller imgui[full]
pip install -U -r requirements.txt
- name: Build exe file # For the people that don't have Python installed or don't want to install it
run: |
pyinstaller --onefile ./to_exe.py --name COTDStatsVisualiser.exe
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: COTDStatsVisualiser.exe
path: ./dist/COTDStatsVisualiser.exe
create-release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Get Artifact
uses: actions/download-artifact@v3
with:
name: COTDStatsVisualiser.exe
- name: Publish Release
uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
prerelease: true
token: ${{ secrets.GH_TOKEN }}
files: |
COTDStatsVisualiser.exe
- name: Delete Artifact
uses: actions/delete-artifact@v2
with:
name: COTDStatsVisualiser.exe