Skip to content

Commit

Permalink
Merge pull request #88 from TehMuffinMoo/dev
Browse files Browse the repository at this point in the history
New workflow
  • Loading branch information
TehMuffinMoo authored Mar 4, 2024
2 parents 3fb4904 + dca48f2 commit 203ce2a
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/Publish Release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Rebuild Documentation

on: workflow_dispatch
# push:
# branches: [main]

jobs:
Publish-Release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Import Module
shell: pwsh
run: |
$Manifest = Test-ModuleManifest -Path "./Modules/ibPS/ibPS.psd1" -ErrorAction Stop
$Version = "v$($Manifest.Version.ToString())"
Write-Output "ModuleVersion=$($Version)" | Out-File -FilePath $ENV:GITHUB_ENV -Encoding utf8 -Append
$ReleaseNotes = Get-Content -Path './RELEASE.md' -Raw
Write-Output "ReleaseNotes<<EOF" | Out-File -FilePath $ENV:GITHUB_ENV -Encoding utf8 -Append
Write-Output "$($ReleaseNotes)" | Out-File -FilePath $ENV:GITHUB_ENV -Encoding utf8 -Append
Write-Output "EOF" | Out-File -FilePath $ENV:GITHUB_ENV -Encoding utf8 -Append
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GIT_ACTIONS }}
with:
tag_name: ${{ env.ModuleVersion }}
release_name: Release ${{ env.ModuleVersion }}
body: ${{ env.ReleaseNotes }}
prerelease: false
draft: false
makeLatest: true

0 comments on commit 203ce2a

Please sign in to comment.