Skip to content

Add GitHub Actions workflow for automated releases#1

Open
PierreAntoineAP wants to merge 2 commits intomasterfrom
feature/github-actions-release
Open

Add GitHub Actions workflow for automated releases#1
PierreAntoineAP wants to merge 2 commits intomasterfrom
feature/github-actions-release

Conversation

@PierreAntoineAP
Copy link
Collaborator

Changes

  • Add GitHub Actions workflow to automate release creation on tag push
  • Generate 4 artifact types: DACPAC, BACPAC, BAK, SQL
  • SQL script is generated dynamically from DACPAC with up-to-date compiled binary
  • Add workflow documentation in .github/workflows/README.md
  • Update main README with installation instructions and release creation guide

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants