-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBuild-github-vm-install-office.yml
More file actions
51 lines (49 loc) · 1.71 KB
/
Build-github-vm-install-office.yml
File metadata and controls
51 lines (49 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Build-GitHub-Runner-Install-Office
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: "Installing Office 365 (takes about 5 minutes...)"
id: "install_office"
shell: pwsh
run: choco install office365proplus -y
timeout-minutes: 10
- name: "Display Chocolatey logs in case of Office install failure"
if: failure() && steps.install_office.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 "============ End of Chocolatey Logs ============="
} else {
Write-Host "Chocolatey log file not found at C:\ProgramData\chocolatey\logs\chocolatey.log"
}
shell: pwsh
- name: "Build Access file (accdb/accde)"
id: build_access_file
uses: AccessCodeLib/msaccess-vcs-build@main
with:
source-dir: "source"
target-dir: "bin"
timeout-minutes: 10
- 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 }}