Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.

Commit

Permalink
update env
Browse files Browse the repository at this point in the history
  • Loading branch information
T0biii committed Jan 25, 2022
1 parent 46fcaa2 commit cc2fe8b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ jobs:
Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted
Install-Module "InvokeBuild" -Force
$Username, $ProjectName = $env:GITHUB_REPOSITORY -split "/"
Invoke-Build -ModuleName $ProjectName -Author $Username -Task "InstallDependencies","ImportBuildModule","SetGitHubActionEnvironmentVariables"
Invoke-Build -ModuleName $env:PSProjectName -Author $Username -Task "InstallDependencies","ImportBuildModule","SetGitHubActionEnvironmentVariables"
shell: pwsh

- name: Build
run: Invoke-Build -ModuleName $PSProjectName -Author $env:GH_USERNAME -Version $env:GitVersion_SemVer -NewRelease $true
run: Invoke-Build -ModuleName $env:PSProjectName -Author $env:GH_USERNAME -Version $env:GitVersion_SemVer -NewRelease $true
shell: pwsh

- name: Publish to PowerShell Gallery
run: Invoke-Build -ModuleName $PSProjectName -Task "PublishModule"
run: Invoke-Build -ModuleName $env:PSProjectName -Task "PublishModule"
shell: pwsh
env:
PSGALLERY_API_KEY: ${{ secrets.PSGALLERY_API_KEY }}
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Action"
git add CHANGELOG.md ${PSProjectName}/${GH_PROJECTNAME}.psd1 docs
git add CHANGELOG.md ${{ env.PSProjectName }}/${GH_PROJECTNAME}.psd1 docs
git commit -m "Released ${{ env.GitVersion_SemVer }}"
- name: Push commit
Expand Down

0 comments on commit cc2fe8b

Please sign in to comment.