oh-my-posh/.github/workflows/powershell.yml
2021-11-28 19:23:04 +01:00

20 lines
506 B
YAML

name: PowerShell
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
defaults:
run:
shell: pwsh
working-directory: ${{ github.workspace }}/packages/powershell
steps:
- name: Checkout code 👋
uses: actions/checkout@v2
- name: Pack & Push 📦
run: |
$version = $env:GITHUB_REF.TrimStart("refs/tags/v")
./deploy.ps1 -ModuleVersion $version -Repository PSGallery -RepositoryAPIKey ${{ secrets.PSGALLERY_KEY }}