auto create release

This commit is contained in:
liamcottle
2024-05-28 23:27:50 +12:00
parent 42ce5ce799
commit 10085b72b5

View File

@@ -6,7 +6,8 @@ on:
jobs: jobs:
release: release:
runs-on: windows-latest runs-on: windows-latest
permissions:
contents: write
steps: steps:
- name: Clone Repo - name: Clone Repo
uses: actions/checkout@v1 uses: actions/checkout@v1
@@ -37,20 +38,8 @@ jobs:
echo ${GITHUB_REF/refs\/tags\//} echo ${GITHUB_REF/refs\/tags\//}
echo ::set-output name=TAG::${GITHUB_REF/refs\/tags\//} echo ::set-output name=TAG::${GITHUB_REF/refs\/tags\//}
- name: Get Name of Installer Artifact - name: Create Release
id: get_installer_artifact_name id: create_release
shell: pwsh uses: ncipollo/release-action@v1
run: | with:
$artifactPathname = (Get-ChildItem -Path dist -Filter *-win-installer.exe | Select-Object -First 1).FullName artifacts: "dist/*-win-installer.exe,dist/*-win-portable.exe"
$artifactName = Split-Path -Path $artifactPathname -Leaf
echo "::set-output name=INSTALLER_ARTIFACT_NAME::$artifactName"
echo "::set-output name=INSTALLER_ARTIFACT_PATHNAME::$artifactPathname"
- name: Get Name of Portable Artifact
id: get_portable_artifact_name
shell: pwsh
run: |
$artifactPathname = (Get-ChildItem -Path dist -Filter *-win-portable.exe | Select-Object -First 1).FullName
$artifactName = Split-Path -Path $artifactPathname -Leaf
echo "::set-output name=PORTABLE_ARTIFACT_NAME::$artifactName"
echo "::set-output name=PORTABLE_ARTIFACT_PATHNAME::$artifactPathname"