Skip to content

CI/CD

CI/CD #22

Workflow file for this run

# Infos on current github runners:
# https://docs.github.com/en/free-pro-team@latest/actions/reference/specifications-for-github-hosted-runners#about-github-hosted-runners
name: CI/CD
on:
workflow_dispatch:
jobs:
deploy-briefcase:
name: Briefcase build & draft release
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-2022]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: "pip"
- name: Install hatch
run: pip install hatch
- name: Build package briefcase
shell: bash -l {0}
run: hatch run bundle
# - name: Draft release
# uses: ncipollo/release-action@v1
# with:
# body:
# See for details.
# artifacts: "*/*.+(dmg|AppImage|msi|zip)"
# artifactErrorsFailBuild: false
# allowUpdates: true
# draft: true
# token: ${{ secrets.GITHUB_TOKEN }}
- name: Find files
run: |
files=$(find . -type f \( -name "*.msi" -o -name "*.zip" -o -name "portable" \))
echo "Found files:"
echo "${files}"
shell: bash
# - name: Find ZIP files
# run: |
# files=$(find . -type f -name "*.zip")
# echo "Found files:"
# echo "${files}"
# shell: bash
- name: Archive build artifact
uses: actions/upload-artifact@v4
with:
name: Normcap-win
path: |
./bundle/*.msi
./bundle/*.zip