Skip to content

Vinandkatetest #99

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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"
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -13,4 +13,4 @@ gem "jekyll-feed"
# bundle exec jekyll serve
#
# This will help ensure the proper Jekyll version is running.
# Happy Jekylling!
# Happy Jekylling!
4 changes: 1 addition & 3 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion _includes/partials/setup_azure_sql_instance.md
Original file line number Diff line number Diff line change
Expand Up @@ -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".
2. Follow steps 1-17 from the section: **Create a Single Database**.