updated release notes #10
Workflow file for this run
This file contains hidden or 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: Build and Release | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install dependencies | |
| run: | | |
| pip install -r requirements.txt | |
| pip install pyinstaller | |
| - name: Build executable | |
| run: pyinstaller DynamicPowerPlan.spec | |
| - name: Create zip package | |
| run: | | |
| mkdir dist\DynamicPowerPlan | |
| copy dist\DynamicPowerPlan.exe dist\DynamicPowerPlan\ | |
| copy config.json dist\DynamicPowerPlan\ | |
| copy INSTRUCTIONS.txt dist\DynamicPowerPlan\ | |
| copy LICENSE dist\DynamicPowerPlan\ | |
| copy RELEASE_NOTES.md dist\DynamicPowerPlan\ | |
| xcopy MB_on dist\DynamicPowerPlan\MB_on\ /E /I | |
| xcopy MB_off dist\DynamicPowerPlan\MB_off\ /E /I | |
| xcopy backup dist\DynamicPowerPlan\backup\ /E /I | |
| Compress-Archive -Path dist\DynamicPowerPlan -DestinationPath dist\DynamicPowerPlan.zip | |
| - name: Create Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| name: "Dynamic Power Plan ${{ github.ref_name }}" | |
| body_path: RELEASE_NOTES.md | |
| files: dist/DynamicPowerPlan.zip |