Skip to content

Commit c1b193a

Browse files
committed
Add publish GH Action
1 parent 3e4f405 commit c1b193a

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

.github/workflows/publish.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Publish
2+
on:
3+
workflow_dispatch:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish:
9+
name: Publish
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Publish
14+
shell: pwsh
15+
run: |
16+
$apiKey = '${{ secrets.PS_GALLERY_API_KEY }}' | ConvertTo-SecureString -AsPlainText -Force
17+
$cred = [pscredential]::new('apikey', $apiKey)
18+
./build.ps1 -Task Publish -PSGalleryApiKey $cred -Bootstrap
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
name: CI
1+
name: Test
22
on: [push, pull_request]
33
jobs:
44
test:
5-
name: Run Tests
5+
name: Test
66
runs-on: ${{ matrix.os }}
77
strategy:
88
fail-fast: false

0 commit comments

Comments
 (0)