auto create release
This commit is contained in:
25
.github/workflows/build.yml
vendored
25
.github/workflows/build.yml
vendored
@@ -6,7 +6,8 @@ on:
|
||||
jobs:
|
||||
release:
|
||||
runs-on: windows-latest
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- name: Clone Repo
|
||||
uses: actions/checkout@v1
|
||||
@@ -37,20 +38,8 @@ jobs:
|
||||
echo ${GITHUB_REF/refs\/tags\//}
|
||||
echo ::set-output name=TAG::${GITHUB_REF/refs\/tags\//}
|
||||
|
||||
- name: Get Name of Installer Artifact
|
||||
id: get_installer_artifact_name
|
||||
shell: pwsh
|
||||
run: |
|
||||
$artifactPathname = (Get-ChildItem -Path dist -Filter *-win-installer.exe | Select-Object -First 1).FullName
|
||||
$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"
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
uses: ncipollo/release-action@v1
|
||||
with:
|
||||
artifacts: "dist/*-win-installer.exe,dist/*-win-portable.exe"
|
||||
|
||||
Reference in New Issue
Block a user