Skip to content

Commit

Permalink
combine git actions and set dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
TrevorSquillario committed Sep 15, 2021
1 parent ea137bd commit 59282cc
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 25 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
build:
name: Create Release
needs: tests
runs-on: ubuntu-latest
steps:
- name: Get version from tag
Expand All @@ -51,7 +52,6 @@ jobs:
id: changelog_reader
uses: mindsers/changelog-reader-action@v2
with:
validation_depth: 10
version: ${{ steps.tag_name.outputs.current_version }}
path: ./CHANGELOG.md

Expand Down Expand Up @@ -81,4 +81,22 @@ jobs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ steps.tag_name.outputs.current_version }}.zip
asset_name: ${{ steps.tag_name.outputs.current_version }}.zip
asset_content_type: application/zip
asset_content_type: application/zip

publish:
name: Publish to PowerShell Gallery
needs: tests
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Trust PSGallery
if: success()
shell: pwsh
run: |
Set-PSRepository PSGallery -InstallationPolicy Trusted
- name: Build and publish
env:
NUGET_KEY: ${{ secrets.NUGET_KEY }}
shell: pwsh
run: |
Publish-Module -Path .\DellOpenManage -NuGetApiKey $env:NUGET_KEY -Verbose
23 changes: 0 additions & 23 deletions .github/workflows/publish-module.yml

This file was deleted.

0 comments on commit 59282cc

Please sign in to comment.