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.
31 lines
718 B
31 lines
718 B
name: Build and Deploy Toolbox
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- '**'
|
|
|
|
jobs:
|
|
build-and-deploy-dev:
|
|
if: github.ref_name != 'prod'
|
|
runs-on: [self-hosted, Windows, X64]
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Deploy to Dev
|
|
run: C:\Users\npatterson\Desktop\Alpha\prod\servicetrade-toolbox-deploy.ps1 -Target dev
|
|
shell: pwsh
|
|
|
|
build-and-deploy-prod:
|
|
if: github.ref_name == 'prod'
|
|
runs-on: [self-hosted, Windows, X64]
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Deploy to Prod
|
|
run: C:\Users\npatterson\Desktop\Alpha\prod\servicetrade-toolbox-deploy.ps1 -Target prod
|
|
shell: pwsh
|
|
|