Merge pull request #73 from Azure/y-axis-button-not-visible #59
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
name: Build and deploy on prod | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
checks: write | |
pull-requests: write | |
actions: write | |
contents: write | |
deployments: write | |
security-events: write | |
packages: write | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/[email protected] | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
- run: npm ci --legacy-peer-deps | |
- run: npm run build | |
- run: npm run prepare-samples | |
- run: npm run post-build | |
- uses: JS-DevTools/npm-publish@v1 | |
with: | |
token: ${{ secrets.NPM_TOKEN }} | |
package: "./dist/package.json" | |
- run: git push | |
- name: Azure Static Website Deploy | |
uses: feeloor/azure-static-website-deploy@master | |
env: | |
# The name of the directory you want to upload | |
SOURCE_DIR: "./pages/examples" | |
# Your Azure Client ID -> create sp with id and secret -> add the sp as contributor to the storage | |
AZURE_CLIENT_ID: "${{secrets.CLIENT_ID}}" | |
# Your Azure TENANT ID | |
AZURE_TENANT_ID: "72f988bf-86f1-41af-91ab-2d7cd011db47" | |
# Your Azure Secret | |
AZURE_SECRET: "${{secrets.SECRET_ID}}" | |
# Your Azure Subscription ID | |
AZURE_SUBSCRIPTION_ID: "${{secrets.SUBSCRIPTION_ID}}" | |
# Your Azure Storage Account Name | |
AZURE_STORAGE_ACCOUNT_NAME: "kustotrenderclone" | |
# The index document that you specify when you enable static website hosting, appears when users open the site and dont specify a specific file. | |
AZURE_INDEX_DOCUMENT_NAME: "index.html" | |
FORCE_OVERWRITE: "true" |