pin numba #15
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: Release | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
build: | |
name: Create Release | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.11"] # PYTHON VERSION | |
os: [windows-latest] | |
timeout-minutes: 60 | |
steps: | |
- name: Set env | |
shell: bash | |
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | |
- uses: actions/checkout@main | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@main | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Build windows executables | |
shell: bash | |
run: ./win_build.sh | |
- name: Upload windows executables | |
id: uploadBinaryArtifact | |
uses: actions/[email protected] | |
with: | |
name: dctools-executables | |
path: ./dist/DC-tools-for-Windows/*.exe | |
- name: Remove unsigned windows binaries | |
shell: bash | |
run: | | |
rm ./dist/DC-tools-for-Windows/*.exe | |
- name: Sign Windows executable | |
uses: signpath/github-action-submit-signing-request@v1 | |
with: | |
api-token: '${{ secrets.SIGNPATH_API_TOKEN }}' | |
organization-id: 'TODO' | |
project-slug: 'DC-tools-for-Windows' | |
signing-policy-slug: 'test-signing' | |
github-artifact-id: '${{steps.uploadBinaryArtifact.outputs.artifact-id}}' | |
wait-for-completion: true | |
output-artifact-directory: 'dist/DC-tools-for-Windows' | |
parameters: | | |
Version: "${{ env.RELEASE_VERSION }}" | |
- name: Create Windows installer | |
shell: bash | |
run: ./win_package.sh | |
- name: Upload windows installer | |
id: uploadInstallerArtifact | |
uses: actions/[email protected] | |
with: | |
name: dctools-installer | |
path: ./innosetup/Output/*.exe | |
- name: Remove unsigned windows installer | |
shell: bash | |
run: | | |
rm -rf ./innosetup/Output/*.exe | |
- name: Sign Windows installer | |
uses: signpath/github-action-submit-signing-request@v1 | |
with: | |
api-token: '${{ secrets.SIGNPATH_API_TOKEN }}' | |
organization-id: 'TODO' | |
project-slug: 'DC-tools-for-Windows' | |
signing-policy-slug: 'test-signing' | |
github-artifact-id: '${{steps.uploadBinaryArtifact.outputs.artifact-id}}' | |
wait-for-completion: true | |
output-artifact-directory: 'innosetup/Output' | |
parameters: | | |
Version: "${{ env.RELEASE_VERSION }}" | |
- name: Release Assets | |
uses: softprops/action-gh-release@v1 | |
with: | |
name: DC tools for Windows ${{ env.RELEASE_VERSION }} | |
draft: true | |
prerelease: false | |
body: | | |
![](https://img.shields.io/github/downloads/DC-Analysis/DC-tools-for-Windows/${{ env.RELEASE_VERSION }}/total.svg) | |
This installer and the executables therein are signed: [Code Signing Policy](https://github.com/DC-analysis/DC-tools-for-Windows#code-signing-policy). | |
files: | | |
./innosetup/Output/*.exe |