diff --git a/.github/workflows/azure-static-web-apps-yellow-forest-0cd0b831e.yml b/.github/workflows/azure-static-web-apps-yellow-forest-0cd0b831e.yml new file mode 100644 index 0000000..fbe256a --- /dev/null +++ b/.github/workflows/azure-static-web-apps-yellow-forest-0cd0b831e.yml @@ -0,0 +1,52 @@ +name: Azure Static Web Apps CI/CD + +on: + push: + branches: + - vinandkatetest + pull_request: + types: [opened, synchronize, reopened, closed] + branches: + - vinandkatetest + +jobs: + build_and_deploy_job: + if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed') + runs-on: ubuntu-latest + name: Build and Deploy Job + steps: + - uses: actions/checkout@v2 + with: + submodules: true + - name: Set up Ruby + uses: ruby/setup-ruby@ec106b438a1ff6ff109590de34ddc62c540232e0 + with: + ruby-version: 2.6 + - name: Install dependencies + run: bundle install + - name: Jekyll build + run: jekyll build + - name: Build And Deploy + id: builddeploy + uses: Azure/static-web-apps-deploy@v0.0.1-preview + with: + azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_YELLOW_FOREST_0CD0B831E }} + repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments) + action: "upload" + ###### Repository/Build Configurations - These values can be configured to match you app requirements. ###### + # For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig + app_location: "/_site" # App source code path + app_artifact_location: "" # Built app content directory - optional + ###### End of Repository/Build Configurations ###### + + close_pull_request_job: + if: github.event_name == 'pull_request' && github.event.action == 'closed' + runs-on: ubuntu-latest + name: Close Pull Request Job + steps: + - name: Close Pull Request + id: closepullrequest + uses: Azure/static-web-apps-deploy@v0.0.1-preview + with: + azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_YELLOW_FOREST_0CD0B831E }} + action: "close" diff --git a/Gemfile b/Gemfile index 2357416..ac6eb37 100644 --- a/Gemfile +++ b/Gemfile @@ -1,5 +1,5 @@ source "https://rubygems.org" -ruby "2.2.2" +ruby "2.6.6" gem "kramdown" gem "bundler" gem "jekyll", "3.5.2" @@ -13,4 +13,4 @@ gem "jekyll-feed" # bundle exec jekyll serve # # This will help ensure the proper Jekyll version is running. -# Happy Jekylling! \ No newline at end of file +# Happy Jekylling! diff --git a/_config.yml b/_config.yml index 710f704..69a3bbe 100644 --- a/_config.yml +++ b/_config.yml @@ -3,9 +3,7 @@ title: Build an app with Azure SQL or SQL Server description: > Get started with Azure SQL DB on the cloud or SQL Server on macOS, Linux, and Windows. -url: https://sqlchoice.azurewebsites.net -destination: ../wwwroot/en-us/sql-server/developer-get-started -baseurl: /en-us/sql-server/developer-get-started + disqus: shortname: sqlchoice diff --git a/_includes/partials/setup_azure_sql_instance.md b/_includes/partials/setup_azure_sql_instance.md index de39aa5..a18271c 100644 --- a/_includes/partials/setup_azure_sql_instance.md +++ b/_includes/partials/setup_azure_sql_instance.md @@ -3,4 +3,4 @@ Go to this [**site**](https://docs.microsoft.com/en-us/azure/sql-database/sql-da 1. Perform the Prerequisites steps. -2. Follow steps 1-17 from the section: "Create a Single Database". \ No newline at end of file +2. Follow steps 1-17 from the section: **Create a Single Database**.