oh-my-posh/.github/workflows/powershell.yml
2021-11-25 10:58:30 +01:00

20 lines
517 B
YAML

name: PowerShell
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
defaults:
run:
shell: pwsh
working-directory: ${{ github.workspace }}/packages/powershell/oh-my-posh
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 }}