Skip to content

Commit

Permalink
Github Actions, switching to GITHUB_RUN_NUMBER for Preview build, att…
Browse files Browse the repository at this point in the history
…empt 07... Next Fix token expiration ... Later deep dive into folder cmdlets based on OpenApi
  • Loading branch information
ddemeyer committed Oct 2, 2023
1 parent 5d5b5d6 commit a1499b2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ on:

env:
ISHGITHUB_RUN_NUMBER: ${{ github.run_number }}
ISHGITHUB_SERVER_URL: ${{ github.server_url }}
ISHGITHUB_REPOSITORY: ${{ github.repository }}
ISHGITHUB_RUN_ID: ${{ github.run_id }}

jobs:
build:
Expand Down Expand Up @@ -185,7 +188,11 @@ jobs:
- name: "Info: How to publish to Internal/Nexus Repositories"
shell: pwsh
run: |
echo "1. Login to Github, navigate to $env:GITHUB_SERVER_URL/$env:GITHUB_REPOSITORY/actions/runs/$env:GITHUB_RUN_ID"
echo "2. Download ISHRemote-MainCI-Module artefact"
echo "3. Extract to ..."
echo "4. PowerShell session, execute Publish-Module ..."
echo "Either the steps below or in-house https://jenkins-docs.web.sdldev.net/job/Publish-ISHRemote/ job that downloads and publishes to Nexus"
echo "1. Login to Github, navigate to $env:ISHGITHUB_SERVER_URL/$env:ISHGITHUB_REPOSITORY/actions/runs/$env:ISHGITHUB_RUN_ID"
echo "2. Download ISHRemote-MainCI-Module artefact to C:\TEMP\ISHRemote\ISHRemote-MainCI-Module.zip"
echo "3. In a PowerShell Session..."
echo "3a. Remove-Item -Path C:\TEMP\ISHRemote\ToPublish -Recurse -Force"
echo "3b. Expand-Archive -Path C:\TEMP\ISHRemote\ISHRemote-MainCI-Module.zip -DestinationPath C:\TEMP\ISHRemote\ToPublish\ -Force"
echo "3c. Publish-Module -Path C:\TEMP\ISHRemote\ToPublish\ISHRemote.psd1 -Repository $psRepository -NuGetApiKey $nuGetApiKey -Force"
echo "3d. Find-Module -Name ISHRemote -Repository $psRepository -AllowPrerelease"
2 changes: 1 addition & 1 deletion Source/ISHRemote/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project>
<!-- Force CI/GithubAction on 20230929 -->
<!-- Force CI/GithubAction on 20231002 -->

<PropertyGroup>
<ProductName>ISHRemote</ProductName>
Expand Down

0 comments on commit a1499b2

Please sign in to comment.