Skip to content

Remove testing, it isn't possible at this time #9

Remove testing, it isn't possible at this time

Remove testing, it isn't possible at this time #9

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Build Icon App
on:
push:
branches: master
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Install Python
uses: actions/setup-python@v1
with:
python-version: '3.10'
architecture: 'x64'
- name: Install requirements
run: |
pip install -r requirements.txt
- name: Run PyInstaller
run: |
python -m PyInstaller weather_icons.spec
- uses: actions/upload-artifact@v2
with:
name: WeatherIconMachine
path: dist/WeatherIconMachine.exe
- name: create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.run_number }}
release_name: Build ${{ github.run_number }} - ${{ github.event.head_commit.message }}
body: ${{ github.event.head_commit.message }}
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{steps.create_release.outputs.upload_url}}
asset_path: dist/WeatherIconMachine.exe
asset_name: WeatherIconMachine.exe
asset_content_type: application/zip