Skip to content

Workflow file for this run

on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: "windows-latest"
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.11
- run: pip install -r requirements.txt pyinstaller
- run: pyinstaller --clean --noconfirm --log-level=WARN MonitorBrightnessScheduler.spec
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y%m%d%H%M%S')"
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: release-${{ steps.date.outputs.date }}
release_name: Release ${{ steps.date.outputs.date }}
draft: false
prerelease: false
- name: Release with Notes
uses: softprops/action-gh-release@v1
with:
tag_name: release-${{ steps.date.outputs.date }}
files: dist/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}