Skip to content

Merge pull request #31 from smatechnologies/dependabot/npm_and_yarn/w… #75

Merge pull request #31 from smatechnologies/dependabot/npm_and_yarn/w…

Merge pull request #31 from smatechnologies/dependabot/npm_and_yarn/w… #75

Workflow file for this run

name: deploy
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
lfs: true
- run: git lfs checkout
- uses: actions/setup-node@v2
with:
node-version: '14'
- uses: kheiakiyama/install-azcopy-action@v1
with:
version: 'v10'
# copy content to new app
- run: azcopy_v10 copy './docs' '${{ secrets.HELP_CONTENT_URL }}/content/${{ github.repository }}?${{ secrets.HELP_CONTENT_TOKEN }}' --recursive
- run: azcopy_v10 copy './static' '${{ secrets.HELP_CONTENT_URL }}/content/${{ github.repository }}?${{ secrets.HELP_CONTENT_TOKEN }}' --recursive
- run: azcopy_v10 copy './sidebars.js' '${{ secrets.HELP_CONTENT_URL }}/content/${{ github.repository }}?${{ secrets.HELP_CONTENT_TOKEN }}'
# publish compiled output to existing app
- run: yarn install
- run: yarn build
- run: azcopy_v10 copy 'build/*' '${{ secrets.TRAINING_STORAGE_URL }}/${{ secrets.CONTENT_PATH }}?${{ secrets.TRAINING_STORAGE_KEY }}' --recursive