kopia lustrzana https://github.com/OpenDroneMap/ODM
Publish Windows action
rodzic
079b80dbe0
commit
1259d51faf
|
@ -0,0 +1,62 @@
|
||||||
|
name: Publish Windows Setup
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
tags:
|
||||||
|
- v*
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: windows-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Setup Python
|
||||||
|
uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: '3.8.1'
|
||||||
|
architecture: 'x64'
|
||||||
|
- name: Setup Visual C++
|
||||||
|
uses: ilammy/msvc-dev-cmd@v1
|
||||||
|
with:
|
||||||
|
arch: x64
|
||||||
|
toolset: "14.27.29110"
|
||||||
|
- name: Extract code signing cert
|
||||||
|
id: code_sign
|
||||||
|
uses: timheuer/base64-to-file@v1
|
||||||
|
with:
|
||||||
|
fileName: 'comodo.pfx'
|
||||||
|
encodedString: ${{ secrets.CODE_SIGNING_CERT }}
|
||||||
|
- name: Setup code signing
|
||||||
|
env:
|
||||||
|
CODE_SIGN_CERT_PATH: ${{ steps.code_sign.outputs.filePath }}
|
||||||
|
run: |
|
||||||
|
New-Item -Path "HKCU:\SOFTWARE\Jordan Russell\Inno Setup" -Name SignTools -Force
|
||||||
|
Set-ItemProperty -Path "HKCU:\SOFTWARE\Jordan Russell1\Inno Setup\SignTools" -Name SignTool0 -Value ("signtool=\""" + (Get-Command signtool).Source + """ sign /f \""$env.CODE_SIGN_CERT_PATH\"" /t http://timestamp.sectigo.com " + '$f')
|
||||||
|
- name: Install and create venv
|
||||||
|
run: |
|
||||||
|
python -m pip install virtualenv
|
||||||
|
python -m virtualenv venv
|
||||||
|
- name: Build sources
|
||||||
|
run: |
|
||||||
|
python configure.py build
|
||||||
|
- name: Create setup
|
||||||
|
run: |
|
||||||
|
python configure.py dist
|
||||||
|
- name: Upload Setup File
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: Setup
|
||||||
|
path: dist\*.exe
|
||||||
|
- name: Upload Setup to Release
|
||||||
|
uses: svenstaro/upload-release-action@v2
|
||||||
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
|
with:
|
||||||
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
file: dist\*.exe
|
||||||
|
file_glob: true
|
||||||
|
tag: ${{ github.ref }}
|
||||||
|
overwrite: true
|
||||||
|
|
Ładowanie…
Reference in New Issue