Skip to content

GitHub Action for Azure SQL

Compare
Choose a tag to compare
@N-Usha N-Usha released this 30 Oct 16:17
· 120 commits to master since this release
f9ff4fa

Automate your Action workflows to deploy to an Azure SQL database using this option

Sample workflow to deploy to an Azure SQL database

# .github/workflows/sql-deploy.yml
on: [push]

jobs:
  build:
    runs-on: windows-latest
    steps:
    - uses: actions/checkout@v1
    - uses: azure/actions/login@v1
      with:
        creds: ${{ secrets.AZURE_CREDENTIALS }}
    - uses: Azure/sql-action@v1
      with:
        server-name: REPLACE_THIS_WITH_YOUR_SQL_SERVER_NAME
        connection-string: ${{ secrets.AZURE_SQL_CONNECTION_STRING }}
        dacpac-package: './Database.dacpac'

Released under MIT License