Skip to content

doc updates

doc updates #14

Workflow file for this run

name: Rust
on:
push:
tags:
- 'v*.*.*'
env:
CARGO_TERM_COLOR: always
jobs:
release:
environment: release
permissions:
id-token: write
contents: write
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: update rust stable
run: |
rustup update stable
rustup target add x86_64-pc-windows-gnu
- name: Build
run: cargo build --verbose
- name: Run tests
run: |
py -m venv venv
venv\Scripts\activate
pip install ahk-binary
cargo test --verbose
- name: build_release
run: cargo build --release
- name: Azure login
uses: azure/login@v1
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- name: sign build
uses: azure/[email protected]
with:
endpoint: ${{ secrets.SIGNING_ENDPOINT }}
trusted-signing-account-name: ${{ secrets.CODE_SIGNING_ACCOUNT_NAME }}
certificate-profile-name: ${{ secrets.CERTIFICATE_PROFILE_NAME }}
files: ${{ github.workspace }}\target\x86_64-pc-windows-gnu\release\tempus_ahk.dll
exclude-environment-credential: true
exclude-workload-identity-credential: true
exclude-managed-identity-credential: true
exclude-shared-token-cache-credential: true
exclude-visual-studio-credential: true
exclude-visual-studio-code-credential: true
exclude-azure-cli-credential: false
exclude-azure-powershell-credential: true
exclude-azure-developer-cli-credential: true
exclude-interactive-browser-credential: true
file-digest: SHA256
timestamp-rfc3161: http://timestamp.acs.microsoft.com
timestamp-digest: SHA256
- name: package_release_zip
env:
VIRUS_TOTAL_KEY: ${{ secrets.VIRUS_TOTAL_KEY }}
run: |
mkdir dist
copy target\x86_64-pc-windows-gnu\release\tempus_ahk.dll dist\
copy tempus.ahk dist\
7z a -tzip tempus_ahk.zip ${{ github.workspace }}\dist\*
move tempus_ahk.zip dist\
py -m venv venv
venv\Scripts\activate
pip install requests
python .\._submit_release.py > output.txt
- name: Release GitHub
uses: softprops/action-gh-release@v1
with:
body_path: output.txt
append_body: true
files: dist/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}