Skip to content

Commit b2eadfe

Browse files
Create main.yml
1 parent ae990a8 commit b2eadfe

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/main.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: CI
2+
on:
3+
push:
4+
#branches:
5+
# - main
6+
# - bugfix/**
7+
# - feature/**
8+
tags:
9+
- 'release-v[0-9]+.[0-9]+.[0-9]+'
10+
workflow_dispatch:
11+
12+
jobs:
13+
publish:
14+
name: Publish action
15+
runs-on: windows-latest
16+
17+
steps:
18+
- name: Git Checkout
19+
uses: actions/[email protected]
20+
- name: Publish Module to PowerShell Gallery
21+
#uses: pcgeek86/publish-powershell-module-action@v20
22+
env:
23+
API_KEY: ${{ secrets.PS_GALLERY_KEY }}
24+
id: publish-module
25+
run: |
26+
Publish-Module -Path "$env:GITHUB_WORKSPACE" -NuGetApiKey $env:API_KEY

0 commit comments

Comments
 (0)