Skip to content

Pyinstaller

Pyinstaller #23

Workflow file for this run

name: Publish Release
on:
workflow_dispatch:
workflow_call:
jobs:
installer:
name: Pyinstaller
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
os:
- windows
- ubuntu
- macos
steps:
- name: Get Tag Name
id: set_tag
shell: bash
env:
OS: ${{ matrix.os }}
run: |
GIT_TAG=${GITHUB_REF#refs/*/}
NAME="duploctl-${GIT_TAG}-${OS}"
echo "GIT_TAG=${GIT_TAG}" >> $GITHUB_OUTPUT
echo "NAME=${NAME}" >> $GITHUB_OUTPUT
- name: Checkout Code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
- name: Install Dependencies
run: pip install .[build]
- name: Pyinstaller
id: installer
run: pyinstaller installer.spec
- name: View Files
run: ls dist/duplocloud
- uses: actions/upload-artifact@v4
with:
name: ${{ steps.set_tag.outputs.NAME }}
path: dist/duplocloud