Skip to content

Commit

Permalink
Auto deploy GroupCall sample (#69)
Browse files Browse the repository at this point in the history
* testing deploy workflow

* commenting out the chat deployment for now

* just deleting chat deployment for now

* Adding chat back into deploy to azure script

* renaming job name

* Not auto-updating chat due to erasing chat thread storage on every update

* updating release yaml and suggested fixes for deployment

* fixing some nits

Co-authored-by: James Burnside <[email protected]>
  • Loading branch information
alkwa-msft and JamesBurnside authored Mar 12, 2021
1 parent 8f173c7 commit 5e063f1
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 30 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/deploy-azure-webapps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ on:
workflow_dispatch:

jobs:
build-and-deploy-1To1Calling:
name: Build and Deploy 1To1Calling
build-and-deploy-samples:
name: Build and Deploy samples
runs-on: ubuntu-latest
environment: production
steps:
Expand All @@ -32,9 +32,20 @@ jobs:
run: rushx package
working-directory: ./samples/OneToOneCall

- name: 'Deploy Sample WebApps'
- name: 'Deploy One To One Calling Sample WebApp'
uses: azure/webapps-deploy@v2
with:
app-name: 1To1Calling
publish-profile: ${{ secrets.AZURE_1TO1CALLING_WEBAPP_PUBLISH_PROFILE }}
package: ./samples/OneToOneCall/dist

- name: Package Group Calling Sample Artifact
run: rushx package
working-directory: ./samples/Calling

- name: 'Deploy Group Calling Sample WebApp'
uses: azure/webapps-deploy@v2
with:
app-name: acs-ui-dev-web-calling-hero
publish-profile: ${{ secrets.AZURE_GROUPCALLING_WEBAPP_PUBLISH_PROFILE }}
package: ./samples/Calling/dist
24 changes: 3 additions & 21 deletions .github/workflows/private-preview-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,29 +24,15 @@ jobs:
- name: Install dependencies
run: rush install

# Builds
- name: Build Packages and Samples
run: rush build

# Package up artifacts for release
- name: Package Group Calling Sample Artifact
run: rushx package
working-directory: ./samples/Calling

- name: Package Group Chat Sample Artifact
run: rushx package
working-directory: ./samples/Chat
run: rush build -t "@azure/communication-ui"

- name: Package Private-Preview Artifact
run: npm pack
working-directory: ./packages/communication-ui/

# Todo: move chat and groupcall samples to deploy in the same way as one-to-one
- name: Archive builds
run: |
7z a group-calling.zip ./samples/Calling/dist/*
7z a group-chat.zip ./samples/Chat/dist/*
7z a private-preview.zip ./packages/communication-ui/private-preview/*
run: 7z a private-preview.zip ./packages/communication-ui/private-preview/*

# Get datetime to name and tag the releases with.
- name: Get Release names
Expand All @@ -61,10 +47,6 @@ jobs:
with:
name: PrivatePreview ${{ steps.releasenames.outputs.releasename }}
tag_name: Release/${{ steps.releasenames.outputs.tagname }}
# Todo: move chat and groupcall samples to deploy in the same way as one-to-one
files: |
group-calling.zip
group-chat.zip
private-preview.zip
files: private-preview.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 1 addition & 3 deletions packages/acs-calling-declarative/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,5 @@ module.exports = {
},

// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
transformIgnorePatterns: [
'/node_modules/'
]
transformIgnorePatterns: ['/node_modules/']
};
4 changes: 1 addition & 3 deletions packages/acs-chat-declarative/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,5 @@ module.exports = {
},

// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
transformIgnorePatterns: [
'/node_modules/'
]
transformIgnorePatterns: ['/node_modules/']
};

0 comments on commit 5e063f1

Please sign in to comment.