Update actions/checkout action to v4 #274
Workflow file for this run
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: Build PyInstaller | |
on: | |
push: | |
schedule: | |
- cron: '15 16 * * 3,6' | |
jobs: | |
build: | |
name: Build package | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 | |
with: | |
repository: pyinstaller/pyinstaller | |
ref: v5.13.2 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.9 | |
- name: Build 64-bit bootloader | |
run: | | |
cd bootloader | |
python waf distclean all --target-arch=64bit | |
- name: Build 32-bit bootloader | |
run: | | |
cd bootloader | |
python waf distclean all --target-arch=32bit | |
- name: Build packages | |
run: | | |
python -m pip install wheel | |
python setup.py sdist bdist_wheel | |
- name: Archive packages | |
uses: actions/upload-artifact@v3 | |
with: | |
name: dist | |
path: dist/* | |
publish: | |
name: Publish package | |
permissions: | |
contents: write | |
needs: build | |
runs-on: ubuntu-latest | |
if: github.ref == 'refs/heads/main' | |
steps: | |
- name: Download archived package | |
uses: actions/download-artifact@v3 | |
with: | |
name: dist | |
- name: Find dist files | |
id: files | |
run: echo "::set-output name=FILES::$(find -type f -printf '%p ')" | |
- name: Publish snapshot package | |
uses: meeDamian/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
tag: snapshot | |
body: "Snapshot build" | |
files: ${{ steps.files.outputs.FILES }} | |
allow_override: true | |
gzip: false |