oh-my-posh/.github/workflows/powershell.yml

20 lines
506 B
YAML
Raw Normal View History

2021-10-06 12:43:18 -07:00
name: PowerShell
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
defaults:
run:
shell: pwsh
2021-11-28 10:23:04 -08:00
working-directory: ${{ github.workspace }}/packages/powershell
2021-10-06 12:43:18 -07:00
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 }}