name: Deploy

on:
    release:
        types: [created]

jobs:
    windows:
    
        runs-on: windows-latest
    
        steps:
        - uses: actions/checkout@v1
        - name: Install needed software
          run: ./.github/scripts/Install.ps1
          env:
            FZF_VERSION: 0.20.0
          shell: powershell
        - name: Build PSFzf-Binary
          run: ./.github/scripts/Build.ps1
          shell: powershell
        - name: Publish
          run: ./.github/scripts/Deploy.ps1
          shell: pwsh
          env:
            POWERSHELLGALLERY_APIKEY: ${{ secrets.POWERSHELLGALLERY_APIKEY }}
            GITHUB_PRERELEASE: ${{ github.event.release.prerelease }}

name: Deploy

on:
    release:
        types: [created]

jobs:
    windows:
    
        runs-on: windows-latest
    
        steps:
        - uses: actions/checkout@v1
        - name: Install needed software
          run: ./.github/scripts/Install.ps1
          env:
            FZF_VERSION: 0.20.0
          shell: pwsh
        - name: Build PSFzf-Binary
          run: ./.github/scripts/Build.ps1
          shell: pwsh
        - name: Publish
          run: ./.github/scripts/Deploy.ps1
          shell: pwsh
          env:
            POWERSHELLGALLERY_APIKEY: ${{ secrets.POWERSHELLGALLERY_APIKEY }}
            GITHUB_PRERELEASE: ${{ github.event.release.prerelease }}

Make all steps run on pwsh
Make all steps run on pwsh
