You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
832 B
33 lines
832 B
name: Build and Deploy Toolbox
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- '**'
|
|
|
|
jobs:
|
|
build-and-deploy-dev:
|
|
if: github.ref_name != 'production'
|
|
runs-on: [self-hosted, Windows, X64]
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Deploy to Dev
|
|
run: |
|
|
& 'C:\Scripts\github\servicetrade-toolbox\servicetrade-toolbox-deploy.ps1' -Target dev -ProjectRoot $env:GITHUB_WORKSPACE
|
|
shell: pwsh
|
|
|
|
build-and-deploy-prod:
|
|
if: github.ref_name == 'production'
|
|
runs-on: [self-hosted, Windows, X64]
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Deploy to Prod
|
|
run: |
|
|
& 'C:\Scripts\github\servicetrade-toolbox\servicetrade-toolbox-deploy.ps1' -Target prod -ProjectRoot $env:GITHUB_WORKSPACE
|
|
shell: pwsh
|
|
|