BuildIt #7
This file contains hidden or 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: BuildIt | |
on: | |
- workflow_dispatch | |
permissions: | |
id-token: write | |
attestations: write | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.ACCESS_TOKEN }} | |
- name: "Build Access file (accdb/accde)" | |
id: build_access_file | |
uses: AccessCodeLib/msaccess-vcs-build@main | |
with: | |
source-dir: "./source" | |
timeout-minutes: 10 | |
- name: "Display Chocolatey logs in case of Office install failure" | |
if: failure() && steps.build_access_file.outcome == 'failure' | |
run: | | |
if (Test-Path -Path "C:\ProgramData\chocolatey\logs\chocolatey.log") { | |
Write-Host "============ Chocolatey Log Contents ============" | |
Get-Content -Path "C:\ProgramData\chocolatey\logs\chocolatey.log" | |
Write-Host "=================================================" | |
} else { | |
Write-Host "Chocolatey log file not found at C:\ProgramData\chocolatey\logs\chocolatey.log" | |
} | |
shell: pwsh | |
- name: "Upload Build Artifact" | |
uses: actions/upload-artifact@v4 | |
id: "upload" | |
with: | |
name: "Binary files" | |
path: "./bin/*" | |
if-no-files-found: warn | |
- name: "Attestation" | |
uses: actions/attest-build-provenance@v2 | |
with: | |
subject-name: "Binary files" | |
subject-digest: sha256:${{ steps.upload.outputs.artifact-digest }} |