Created
November 8, 2022 00:19
-
-
Save kenmuse/72b7225cb2aaf8c9fa8373967874c245 to your computer and use it in GitHub Desktop.
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: Publish to ADF | |
# Controls when the workflow will run | |
on: | |
# Triggers the workflow on push or pull request events but only for the "main" branch | |
# push: | |
# branches: [ "main" ] | |
# pull_request: | |
# branches: [ "main" ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
env: | |
# Put the actual resource details here (or replace env.TARGET_RESOURCE with secrets.TARGET_RESOURCE to use a secret). | |
TARGET_RESOURCE: '/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup/providers/Microsoft.DataFactory/factories/dataFactory' | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v3 | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v3.5.1 | |
with: | |
node-version: 16.x | |
- name: Initialize | |
run: npm install | |
working-directory: ${{ github.workspace }}/build | |
- name: Validate Files | |
run: npm run build validate "${{ github.workspace }}" "${{ env.TARGET_RESOURCE }}" | |
working-directory: ${{ github.workspace }}/build | |
- name: Generate Files | |
run: npm run build-preview export "${{ github.workspace }}" "${{ env.TARGET_RESOURCE }}" "_export" | |
working-directory: ${{ github.workspace }}/build | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: Templates | |
path: ${{ github.workspace }}/build/_export |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment