Skip to content

Commit 6edea8d

Browse files
committed
Add publish workflow
1 parent 1f3f64f commit 6edea8d

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/publish.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Publish PowerShell Modules
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
14+
- name: Publish Php Module
15+
shell: pwsh
16+
run: |
17+
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
18+
cd php
19+
Publish-Module -Path BuildPhp -NuGetApiKey ${{ secrets.NUGET_TOKEN }} -ErrorAction Stop
20+
21+
- name: Publish Php Extension Module
22+
shell: pwsh
23+
run: |
24+
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
25+
cd extension
26+
Publish-Module -Path BuildPhpExtension -NuGetApiKey ${{ secrets.NUGET_TOKEN }} -ErrorAction Stop

0 commit comments

Comments
 (0)