Skip to content

Commit

Permalink
Updated variables
Browse files Browse the repository at this point in the history
  • Loading branch information
ykuijs committed Nov 13, 2023
1 parent 48cead8 commit 4f92e0c
Showing 1 changed file with 6 additions and 20 deletions.
26 changes: 6 additions & 20 deletions .github/workflows/ModuleBuildTestRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ jobs:
with:
name: ${{ env.buildArtifactName }}
path: ${{ env.buildFolderName }}/
outputs:
ModuleVersion: ${{ steps.GitVersion.outputs.ModuleVersion }}

Test_Stage_test_windows_ps:
name: Windows (Windows PowerShell)
Expand All @@ -73,37 +75,20 @@ jobs:
- name: Run Tests
shell: powershell
run: './build.ps1 -Tasks Test'
env:
ModuleVersion: ${{ needs.Build_Stage_Package_Module.outputs.ModuleVersion }}
- name: Publish Test Artifact
uses: actions/upload-artifact@v3
with:
path: ${{ env.buildFolderName }}/${{ env.testResultFolderName }}/
name: CodeCoverageWinPS51

# Test_Stage_Code_Coverage:
# name: Publish Code Coverage
# runs-on: ubuntu-latest
# needs:
# - Build_Stage_Package_Module
# - Test_Stage_test_windows_ps
# steps:
# - uses: actions/checkout@v2
# - name: Set Environment Variables
# run: |
# $repositoryOwner,$repositoryName = $env:BUILD_REPOSITORY_NAME -split '/'
# echo "##vso[task.setvariable variable=RepositoryOwner;isOutput=true]$repositoryOwner"
# echo "##vso[task.setvariable variable=RepositoryName;isOutput=true]$repositoryName"
# shell: pwsh
# - name: Download Pipeline Artifact
# uses: actions/download-artifact@v2
# - name: Download Test Artifact Windows (PS 5.1)
# uses: actions/download-artifact@v2

Deploy_Stage_Deploy_Module:
name: Deploy Module
runs-on: ubuntu-latest
needs:
- Build_Stage_Package_Module
- Test_Stage_test_windows_ps
#- Test_Stage_Code_Coverage
if: (success() && ((github.ref == 'refs/heads/main') || startsWith(github.ref, 'refs/tags/')) && (contains(github.repository_owner, 'ykuijs')))
steps:
- uses: actions/checkout@v4
Expand All @@ -124,6 +109,7 @@ jobs:
GalleryApiToken: ${{ secrets.GalleryApiToken }}
ReleaseBranch: ${{ env.defaultBranch }}
MainGitBranch: ${{ env.defaultBranch }}
ModuleVersion: ${{ needs.Build_Stage_Package_Module.outputs.ModuleVersion }}
- name: Send Changelog PR
shell: pwsh
run: './build.ps1 -Tasks Create_ChangeLog_GitHub_PR'
Expand Down

0 comments on commit 4f92e0c

Please sign in to comment.