mirror of
https://github.com/ciromattia/kcc
synced 2025-12-12 17:26:23 +00:00
Bumps [signpath/github-action-submit-signing-request](https://github.com/signpath/github-action-submit-signing-request) from 1.2 to 1.3. - [Commits](https://github.com/signpath/github-action-submit-signing-request/compare/v1.2...v1.3) --- updated-dependencies: - dependency-name: signpath/github-action-submit-signing-request dependency-version: '1.3' dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
70 lines
2.0 KiB
YAML
70 lines
2.0 KiB
YAML
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
|
|
|
|
name: build KCC for windows
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
tags:
|
|
- "v*.*.*"
|
|
|
|
# Don't trigger if it's just a documentation update
|
|
paths-ignore:
|
|
- '**.md'
|
|
- '**.MD'
|
|
- '**.yml'
|
|
- '**.sh'
|
|
- 'docs/**'
|
|
- 'Dockerfile'
|
|
- 'LICENSE'
|
|
- '.gitattributes'
|
|
- '.gitignore'
|
|
- '.dockerignore'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: 3.11
|
|
cache: 'pip'
|
|
- name: Install dependencies
|
|
env:
|
|
PYINSTALLER_COMPILE_BOOTLOADER: 1
|
|
run: |
|
|
python -m pip install --upgrade pip setuptools wheel
|
|
pip install -r requirements.txt
|
|
pip install certifi pyinstaller --no-binary pyinstaller
|
|
- name: build binary
|
|
run: |
|
|
python setup.py build_binary
|
|
- name: upload-unsigned-artifact
|
|
id: upload-unsigned-artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: windows-build
|
|
path: dist/*.exe
|
|
- id: optional_step_id
|
|
uses: signpath/github-action-submit-signing-request@v1.3
|
|
if: ${{ github.repository == 'ciromattia/kcc' }}
|
|
with:
|
|
api-token: '${{ secrets.SIGNPATH_API_TOKEN }}'
|
|
organization-id: '1dc1bad6-4a8c-4f85-af30-5c5d3d392ea6'
|
|
project-slug: 'kcc'
|
|
signing-policy-slug: 'release-signing'
|
|
github-artifact-id: '${{ steps.upload-unsigned-artifact.outputs.artifact-id }}'
|
|
wait-for-completion: true
|
|
output-artifact-directory: 'dist/'
|
|
- name: Release
|
|
uses: softprops/action-gh-release@v2
|
|
if: startsWith(github.ref, 'refs/tags/')
|
|
with:
|
|
prerelease: true
|
|
generate_release_notes: true
|
|
files: |
|
|
LICENSE.txt
|
|
dist/*.exe
|