WindowsRelease #10
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: WindowsRelease | |
| # Creates a Windows Installer using beeware-briefcase and github actions | |
| # Author: Rahul Singh | |
| # https://github.com/codecliff/PhotoGlimmer | |
| # Runs manually, will prompt for release tag | |
| on: #event | |
| #push: | |
| # branches: [ master ] | |
| #pull_request: | |
| # branches: [ master ] | |
| workflow_dispatch: | |
| inputs: #when run, ask user to input release tag | |
| reltag: | |
| description: "tag for release, eg v1.0.0_win" | |
| required: true | |
| default: "latest" | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| repository-projects: write | |
| jobs: | |
| build-win: | |
| runs-on: windows-2025 #changed from windows-2019 | |
| env: | |
| TAGNAME: ${{ inputs.reltag }} | |
| steps: | |
| - uses: actions/checkout@v2 #1 | |
| - uses: actions/setup-python@v3 #2 | |
| with: | |
| python-version: '3.10' #changed from 3.8.12 | |
| - name: install dependencies #3 | |
| run: | | |
| python -m pip install briefcase | |
| - name: Build msi #4 | |
| run: | | |
| briefcase build | |
| briefcase package #this creates .msi file on windows | |
| - uses: actions/upload-artifact@v4 #5 #changed to v4 from v2 | |
| with: | |
| name: linuxartifacts | |
| path: "./dist/" | |
| - uses: marvinpinto/action-automatic-releases@latest # {{xyz}}varaibles not available in uses | |
| with: | |
| repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
| automatic_release_tag: "${{ inputs.reltag }}" | |
| prerelease: false | |
| title: "Build ${{ github.event.inputs.reltag }}" #same as inputs.reltag | |
| files: | | |
| ./dist/*.* | |