Add GitHub Actions workflow for automated releases#1
Open
PierreAntoineAP wants to merge 2 commits intomasterfrom
Open
Add GitHub Actions workflow for automated releases#1PierreAntoineAP wants to merge 2 commits intomasterfrom
PierreAntoineAP wants to merge 2 commits intomasterfrom
Conversation
There was a problem hiding this comment.
Pull request overview
Adds release/install documentation and introduces a GitHub Actions workflow to automatically build and publish release artifacts for FastWrappers-TSQL.
Changes:
- Document installation options and tag-based release process in the root README.
- Add a tag-triggered GitHub Actions workflow that builds the SQL project and publishes DACPAC/BACPAC/BAK/SQL artifacts to a GitHub Release.
- Add a “reference” SQL deployment script and workflow documentation under
.github/workflows/.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 12 comments.
| File | Description |
|---|---|
| README.md | Adds installation instructions and release/tagging steps. |
| FastWrappers-TSQL.sql | Adds a reference SQL script containing the assembly + wrapper objects. |
| .github/workflows/release.yml | New workflow to build artifacts and create a GitHub Release on version tags. |
| .github/workflows/README.md | Documents the new release workflow and how to cut releases. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
|
|
||
| 1. **FastWrappers-TSQL.dacpac** - Data-tier Application Package (recommended for Visual Studio / SQL Server Data Tools) | ||
| 2. **FastWrappers-TSQL.bacpac** - Binary Application Package (for import/export between servers) | ||
| 3. **FastWrappers-TSQL.bak** - SQL Server Backup file (compatible with SQL Server 2016+, restore using SSMS) |
| run: nuget restore FastWrappers-TSQL.sln | ||
|
|
||
| - name: Build SQL Project | ||
| run: msbuild FastWrappers_TSQL.sqlproj /p:Configuration=Release /p:Platform="Any CPU" |
Comment on lines
+31
to
+32
| # Start SQL LocalDB | ||
| sqllocaldb create MSSQLLocalDB |
Comment on lines
+68
to
+71
| # Create .bak file with compatibility level for SQL Server 2016 | ||
| Write-Host "Creating SQL Server 2016 compatible backup..." | ||
| sqlcmd -S $serverInstance -Q "ALTER DATABASE [$dbName] SET COMPATIBILITY_LEVEL = 130; BACKUP DATABASE [$dbName] TO DISK = N'$PWD\$bakPath' WITH COMPRESSION, STATS = 10" | ||
|
|
|
|
||
| - **FastWrappers-TSQL.dacpac** - Data-tier Application Package (recommended for Visual Studio / SQL Server Data Tools) | ||
| - **FastWrappers-TSQL.bacpac** - Binary Application Package (for import/export between servers) | ||
| - **FastWrappers-TSQL.bak** - SQL Server Backup (compatible with SQL Server 2016+, restore using SSMS) |
| [assembly: AssemblyFileVersion("0.3.3.0")] | ||
| ``` | ||
|
|
||
| Optional: Update [FastWrappers_TSQL.sqlproj](../FastWrappers_TSQL.sqlproj): |
|
|
||
| ### 1. Update the Version | ||
|
|
||
| Edit [Properties/AssemblyInfo.cs](../Properties/AssemblyInfo.cs): |
Comment on lines
+28
to
+30
| SET ANSI_NULLS OFF | ||
| GO | ||
| SET QUOTED_IDENTIFIER OFF |
Comment on lines
+38
to
+40
| SET ANSI_NULLS OFF | ||
| GO | ||
| SET QUOTED_IDENTIFIER OFF |
Comment on lines
+82
to
+84
| SET ANSI_NULLS OFF | ||
| GO | ||
| SET QUOTED_IDENTIFIER OFF |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes