Package Tkinter version of Familiada app #7
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: Package Tkinter version of Familiada app | |
| on: | |
| push: | |
| tags: | |
| - 'tkinter_v*' # Push events with a tag that starts with 'tkinter_v' | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6.0.2 | |
| - name: Package Application using Cythinst64 | |
| uses: PlohnenSoftware/Cythinst64@v2.1 | |
| with: | |
| path: src | |
| # Step to create a flat directory for carrying output files | |
| - name: Create output directory | |
| run: mkdir familiada_all | |
| # Step to move compiled Windows binaries | |
| - name: Move Windows binaries | |
| run: mv src/dist/windows/* familiada_all/ | |
| # Step to move data file | |
| - name: Move data file | |
| run: mv dane.csv familiada_all/ | |
| # Step to zip the flat folder | |
| - name: Zip output folder | |
| run: zip -r familiada.zip familiada_all | |
| # Step to upload the zipped folder as a workflow artifact | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v7.0.1 | |
| with: | |
| name: familiada-tkinter | |
| path: familiada.zip | |
| if-no-files-found: error | |
| # Step to create a release and upload the zipped folder as an asset | |
| - name: Create Release | |
| if: startsWith(github.ref, 'refs/tags/tkinter_v') | |
| id: create_release | |
| uses: softprops/action-gh-release@v3.0.0 | |
| with: | |
| files: familiada.zip | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |