Skip to content

Commit

Permalink
ci: fix ci release
Browse files Browse the repository at this point in the history
  • Loading branch information
SignalRichard authored Feb 14, 2023
1 parent 0870c03 commit d159535
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions .github/workflows/github-actions-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
with:
name: ${{ env.ARTIFACT_NAME }}
path: ${{ env.MODULE_SOURCE }}
GitHubRelease:
Release:
if: ${{ github.ref == 'refs/heads/main' && github.event_name != 'pull_request' }}
runs-on: ubuntu-latest
needs:
Expand Down Expand Up @@ -95,27 +95,12 @@ jobs:
- name: Generate SBOM
run: |
./build/scripts/New-SoftwareBillOfMaterials.ps1 -ReleasePath "$env:GITHUB_WORKSPACE/b" -SourcePath "$env:GITHUB_WORKSPACE/src" -PackageName $env:ARTIFACT_NAME -Version "${{ needs.SemanticVersion.outputs.semantic_version }}"
- name: Semantic Release (Dry-Run)
- name: Semantic Release
id: semantic_release
run: ./build/scripts/Invoke-SemanticRelease.ps1
env:
GH_TOKEN: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}
PowerShellGalleryRelease:
if: ${{ github.ref == 'refs/heads/main' && github.event_name != 'pull_request' }}
runs-on: ubuntu-latest
needs:
- GitHubRelease
defaults:
run:
shell: pwsh
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Download Artifact
uses: actions/download-artifact@v3
with:
name: ${{ env.ARTIFACT_NAME }}
path: a/${{ env.ARTIFACT_NAME }}
GH_REF: ${{ github.ref }}
- name: Publish Module
run: |
./build/scripts/Publish-Module.ps1 -ModulePath "$env:GITHUB_WORKSPACE/a/$env:ARTIFACT_NAME" -ReleaseNotesFilePath "$env:GITHUB_WORKSPACE/RELEASE-NOTES.md"
Expand Down

0 comments on commit d159535

Please sign in to comment.