Merge pull request #599 from kaustubh93-dev/patch-1 #26
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create prerelease | |
defaults: | |
run: | |
shell: powershell | |
on: | |
push: | |
paths: | |
- 'Scripts/**' | |
- 'Tools/**' | |
branches: [ dev ] | |
jobs: | |
new-prerelease: | |
name: Create prerelease | |
if: "!contains(github.event.head_commit.message, '[no release]')" | |
runs-on: windows-2019 | |
permissions: | |
# needed to create a release | |
contents: write | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
- name: Build scripts | |
id: build | |
shell: powershell | |
run: | | |
./build.ps1 -Version dev | |
$filename = "mslab_dev-$((Get-Date -Format "yyyyMMdd")).zip" | |
mv ./Release.zip $filename | |
echo "filename=$filename" >> $env:GITHUB_OUTPUT | |
- name: Delete current dev prerelease | |
uses: cb80/delrel@latest | |
with: | |
tag: dev | |
- name: Create new dev prerelease | |
uses: softprops/action-gh-release@v1 | |
with: | |
tag_name: dev | |
name: dev branch preview | |
generate_release_notes: true | |
prerelease: true | |
files: | | |
${{ steps.build.outputs.filename }} | |
Output/Tools/*.ps1 |