Skip to content

Commit eb09f8a

Browse files
authored
prepare v 1.8.5 (#5)
* use msaccess-vcs for source export * add workflow files
1 parent 97df07f commit eb09f8a

File tree

80 files changed

+8725
-783
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+8725
-783
lines changed

.Copy2AddInFolder.cmd

Lines changed: 0 additions & 1 deletion
This file was deleted.

.CreateWorkingFileFormAddInFolder.cmd

Lines changed: 0 additions & 19 deletions
This file was deleted.

.gitattributes

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# gitattributes template for Microsoft Access database source files
2+
# Source: https://github.com/joyfullservice/msaccess-vcs-integration
3+
#
4+
5+
###############################################################################
6+
# Set default behavior to automatically normalize line endings.
7+
###############################################################################
8+
* text=auto
9+
10+
###############################################################################
11+
# Ensure that source files use CRLF for newlines, in case they are downloaded
12+
# in a compressed archive directly from GitHub. (Otherwise class modules may
13+
# not be imported correctly. See issue #150 for more details.)
14+
###############################################################################
15+
# Most source files use this extension
16+
*.bas text eol=crlf
17+
# Class modules
18+
*.cls text eol=crlf
19+
# Some object definitions
20+
*.xml text eol=crlf
21+
# SQL output
22+
*.sql text eol=crlf
23+
# Forms 2.0 form definitions (rarely used)
24+
*.frm text eol=crlf
25+
# Common source file
26+
*.json text eol=crlf
27+
28+
###############################################################################
29+
# Clarify that the source language is VBA (Auto-detection not always accurate)
30+
# https://github.com/github/linguist/blob/master/docs/overrides.md
31+
###############################################################################
32+
*.bas linguist-language=VBA
33+
*.cls linguist-language=VBA
34+
*.twin linguist-language=VBA
35+
36+
# Git files
37+
*.gitattributes text
38+
*.gitattributes linguist-language=gitattributes
39+
40+
# Ignore files (like .npmignore or .gitignore)
41+
*.*ignore text
42+
*.*ignore export-ignore

.github/workflows/build-accdb.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Build-accdb (on push, pull)
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- feature/**
8+
- bugfix/**
9+
paths:
10+
- 'source/**'
11+
pull_request:
12+
branches:
13+
- main
14+
workflow_dispatch:
15+
16+
permissions:
17+
contents: write
18+
id-token: write
19+
attestations: write
20+
21+
jobs:
22+
build:
23+
runs-on: [self-hosted, Windows, Office]
24+
25+
steps:
26+
- name: "Checkout code for release tag"
27+
uses: actions/checkout@v4
28+
with:
29+
ref: ${{ github.event.release.tag_name }}
30+
31+
- name: "Build Access file (accdb/accde)"
32+
id: build_access_file
33+
uses: AccessCodeLib/msaccess-vcs-build@main
34+
with:
35+
source-dir: "source"
36+
target-dir: "access-add-in"
37+
file-name: "ACLibFilterFormWizard.accda"
38+
timeout-minutes: 10
39+
40+
- name: "Upload Build Artifact"
41+
uses: actions/upload-artifact@v4
42+
id: "upload"
43+
with:
44+
name: "Install files"
45+
path: "./access-add-in/*"
46+
if-no-files-found: warn
47+
- name: "Attestation"
48+
uses: actions/attest-build-provenance@v2
49+
with:
50+
subject-name: "Install files"
51+
subject-digest: sha256:${{ steps.upload.outputs.artifact-digest }}
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
name: Build-install-zip-file (on release)
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
permissions:
8+
contents: write
9+
id-token: write
10+
attestations: write
11+
12+
jobs:
13+
build:
14+
runs-on: [self-hosted, Windows, Office]
15+
16+
steps:
17+
- name: "Checkout code for release tag"
18+
uses: actions/checkout@v4
19+
with:
20+
ref: ${{ github.event.release.tag_name }}
21+
22+
- name: "Build Access file (accdb/accde)"
23+
id: build_access_file
24+
uses: AccessCodeLib/msaccess-vcs-build@main
25+
with:
26+
source-dir: "source"
27+
target-dir: "access-add-in"
28+
file-name: "ACLibFilterFormWizard.accda"
29+
timeout-minutes: 10
30+
31+
- name: "Create versioned ZIP file"
32+
run: |
33+
$zipName = "ACLibFilterFormWizard_${{ github.event.release.tag_name }}.zip"
34+
Compress-Archive -Path .\access-add-in\* -DestinationPath $zipName
35+
echo "ZIP_NAME=$zipName" | Out-File -FilePath $env:GITHUB_ENV -Append
36+
37+
- name: "Upload ZIP to GitHub Release"
38+
uses: softprops/action-gh-release@v1
39+
with:
40+
files: ${{ env.ZIP_NAME }}
41+
env:
42+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43+
44+
- name: "Calculate SHA256 of ZIP"
45+
id: hash
46+
shell: pwsh
47+
run: |
48+
$zipName = "${{ env.ZIP_NAME }}"
49+
$hash = Get-FileHash -Algorithm SHA256 -Path $zipName
50+
$digest = "sha256:$($hash.Hash.ToLower())"
51+
echo "ZIP_DIGEST=$digest" | Out-File -FilePath $env:GITHUB_ENV -Append
52+
echo "digest=$digest" >> $env:GITHUB_OUTPUT
53+
54+
- name: "Attestation"
55+
uses: actions/attest-build-provenance@v2
56+
id: attestation
57+
with:
58+
subject-name: "${{ env.ZIP_NAME }}"
59+
subject-digest: "${{ steps.hash.outputs.digest }}"
60+
61+
- name: "Update release description with attestation URL"
62+
shell: pwsh
63+
env:
64+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
65+
REPO: ${{ github.repository }}
66+
TAG: ${{ github.event.release.tag_name }}
67+
run: |
68+
$ErrorActionPreference = "Stop"
69+
70+
# get current release notes
71+
$oldBody = gh release view $env:TAG --repo $env:REPO --json body --template "{{.body}}"
72+
73+
# build Attestation URL
74+
$attestationId = "${{ steps.attestation.outputs.attestation-id }}"
75+
$attestationUrl = "https://github.com/$($env:REPO)/attestations/$attestationId"
76+
77+
# join release notes with Attestation url
78+
$newBody = "$oldBody`n`nAttestation: $attestationUrl"
79+
80+
# save release notes
81+
gh release edit $env:TAG --repo $env:REPO --notes "$newBody"
82+
83+

.gitignore

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,23 @@
1-
/*.accdb
1+
# gitattributes template for Microsoft Access database source files
2+
# Website: https://github.com/joyfullservice/msaccess-vcs-addin
3+
#
4+
5+
# Ignore Microsoft Access database binary files (Build these from source)
6+
*.accda
7+
*.accdb
8+
*.mdb
9+
10+
# Ignore database lock files
11+
*.laccdb
12+
*.ldb
13+
14+
# The local VCS index file is paired with the binary database file
15+
# and should not be comitted to version control.
16+
vcs-index.json
17+
18+
# Ignore any dotenv files (used for external database connections)
19+
*.env
20+
21+
# Ignore log files generated by the VCS Add-in
22+
# Comment out the following line if you wish to include log files in git.
23+
*.log
-1.45 MB
Binary file not shown.

source/codelib/base/defGlobal.bas

Lines changed: 0 additions & 92 deletions
This file was deleted.

source/codelib/readme.md

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)