chore: bump version #14
Workflow file for this run
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: 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 GitHub Actions / Create PrereleaseInvalid workflow file
|
||
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 |