Fixes #936 - Update Amsterdam/Maastricht CPDLC logon codes (#937) #75
This file contains 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: Compile LogonDetails.exe | |
on: | |
push: | |
branches: | |
- 'main' | |
jobs: | |
changes: | |
name: Check for changes | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: read | |
outputs: | |
build: ${{ steps.filter.outputs.build }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Check for changes | |
uses: dorny/paths-filter@v2 | |
id: filter | |
with: | |
filters: | | |
build: | |
- './UK/LogonDetails.py' | |
build-exe: | |
name: Build executable | |
runs-on: windows-latest | |
needs: changes | |
if: ${{ needs.changes.outputs.build == 'true' }} | |
concurrency: | |
group: uk-controller-pack-build-${{ github.ref }} | |
cancel-in-progress: true | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.VATSIM_UK_GITHUB_TOKEN }} | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: pip install pyinstaller | |
- name: Compile executable | |
run: pyinstaller --distpath UK/ --onefile --icon=workflows/logon-details/logo.ico -n LogonDetails.exe UK/LogonDetails.py | |
- name: Commit executable | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "VATSIM UK" | |
git add UK/LogonDetails.exe | |
git commit -m "Update LogonDetails.exe" | |
git push |