Assemble Toolkit #211
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: Assemble Toolkit | |
# See https://docs.github.com/en/free-pro-team@latest/actions/reference/specifications-for-github-hosted-runners | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 8 * * 6" | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Assemble tookit | |
run: .\Build-Toolkit.ps1 | |
shell: powershell | |
- name: Verify ZIP archive | |
run: 7z t Toolkit.zip | |
shell: powershell | |
- name: Create hash of archive | |
run: Get-FileHash -Algorithm SHA256 .\Toolkit.zip | Format-List | Out-File -FilePath Hash.txt -Encoding "utf8" | |
shell: powershell | |
- name: Release the ZIP archive | |
uses: marvinpinto/action-automatic-releases@latest | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
automatic_release_tag: "latest" | |
prerelease: false | |
title: "Toolkit built from commit ${{ github.sha }}" | |
files: | | |
Toolkit.zip | |
Hash.txt |