Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
g-plane committed May 8, 2024
1 parent 5e40a99 commit e34eefb
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
if: matrix.settings.host != 'windows-latest'
run: |
mkdir dist
cp ./target/release/pnpm-shell-completion dist/
cp ./target/${{ matrix.settings.target }}/release/pnpm-shell-completion dist/
cp ./pnpm-shell-completion.plugin.zsh dist/
cp ./install.zsh dist/
cp ./pnpm.fish dist/
Expand All @@ -62,18 +62,17 @@ jobs:
ls -l
cd ..
- name: Pack
if: matrix.settings.host == 'windows-latest'
shell: pwsh
run: |
if (Test-Path dist) {
Remove-Item -Recurse -Force dist
}
New-Item -ItemType Directory dist
if (Test-Path .\target\release\pnpm-shell-completion.exe) {
Copy-Item .\target\release\pnpm-shell-completion.exe dist
if (Test-Path .\target\${{ matrix.settings.target }}\release\pnpm-shell-completion.exe) {
Copy-Item .\target\${{ matrix.settings.target }}\release\pnpm-shell-completion.exe dist
}
elseif (Test-Path .\target\release\pnpm-shell-completion) {
Copy-Item .\target\release\pnpm-shell-completion dist
elseif (Test-Path .\target\${{ matrix.settings.target }}\release\pnpm-shell-completion) {
Copy-Item .\target\${{ matrix.settings.target }}\release\pnpm-shell-completion dist
}
Copy-Item .\pnpm-shell-completion.ps1 dist
Copy-Item .\README.md dist
Expand Down

0 comments on commit e34eefb

Please sign in to comment.