Skip to content

Commit

Permalink
release steps
Browse files Browse the repository at this point in the history
  • Loading branch information
jworkmanjc committed Nov 13, 2023
1 parent b581814 commit 8802e3d
Showing 1 changed file with 5 additions and 28 deletions.
33 changes: 5 additions & 28 deletions .github/workflows/jcapi-powershell-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,25 +51,8 @@ jobs:
}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Setup-Build-Dependancies:
needs: ["Check-PR-Labels"]
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Setup PowerShell Module Cache
id: cacher
uses: actions/cache@v3
with:
path: "/home/runner/.local/share/powershell/Modules/"
key: PS-Dependancies
- name: Install dependencies
if: steps.cacher.outputs.cache-hit != 'true'
shell: pwsh
run: |
$ErrorActionPreference = 'Stop'
. "${{ github.workspace }}\Setup-Dependencies.ps1"
Draft-GH-Release:
needs: ['Check-PR-Labels']
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -78,7 +61,7 @@ jobs:
- uses: actions/checkout@v4
- name: Build Draft Release
run: |
MODULE_VERSION=$(grep -Po '(\d+\.\d+\.\d+)' ${{ github.workspace }}//SDKs/PowerShell/${{ matrix.sdkName }}/${{ matrix.sdkName }}.psd1)
MODULE_VERSION=$(grep -Po '(\d+\.\d+\.\d+)' ${{ github.workspace }}/SDKs/PowerShell/${{ matrix.sdkName }}/${{ matrix.sdkName }}.psd1)
VERSION=$(echo $MODULE_VERSION | grep -Po "\d\+\.\d\+\.\d\+")
TITLE="${{ matrix.sdkName }}-$VERSION"
# Get the changelog text between the latest release # and the next sequential "## SemanticVersionNumber"
Expand All @@ -97,8 +80,8 @@ jobs:
steps:
- name: Manual Approval for Release
run: echo "Awaiting approval from required reviewers before continuing"
Download-Artifact:
needs: [Manual-Approval-Release]
Deploy-Nupkg:
needs: ['Manual-Approval-Release']
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand All @@ -116,13 +99,7 @@ jobs:
#TODO: extract and list
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Deploy-Nupkg:
runs-on: ubuntu-latest
strategy:
matrix:
sdkName: ['JumpCloud.SDK.V1','JumpCloud.SDK.V2','JumpCloud.SDK.DirectoryInsights']
steps:
- name: publish
- name: Publish SDKs
run: |
# finally remove source PSGallery and add again with the v2/package path for publishing
dotnet nuget remove source PSGallery
Expand Down

0 comments on commit 8802e3d

Please sign in to comment.