Deploy mergebot to Azure #250
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
workflow_dispatch: | |
inputs: | |
checkout: | |
description: ref to deploy | |
required: true | |
default: master | |
repository_dispatch: | |
types: [published] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.event.inputs.checkout || 'master' }} | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 14 | |
- name: install | |
run: yarn install --frozen-lockfile | |
- name: lint | |
run: yarn lint | |
- name: test | |
run: yarn test | |
- name: copy yarn.lock | |
run: cp yarn.lock packages/publisher/ | |
- name: deploy publisher | |
uses: azure/[email protected] | |
with: | |
app-name: types-publisher | |
slot-name: production | |
publish-profile: ${{ secrets.TYPESPUBLISHERFUNCTIONSPUBLISHPROFILE }} | |
package: packages/publisher | |
scm-do-build-during-deployment: true | |
enable-oryx-build: true | |
- name: upload artifacts | |
if: always() | |
uses: actions/upload-artifact@v1 | |
with: | |
name: temp | |
path: /home/runner/work/_temp |