-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #88 from micahmo/feature/workflows
Finish new workflows
- Loading branch information
Showing
5 changed files
with
76 additions
and
5 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Create Release Branch | ||
name: 1. Create Release Branch | ||
|
||
on: | ||
workflow_dispatch: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,33 @@ | ||
name: Generate Release | ||
name: 3. Generate Release | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
generate_release: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Determine Version Number | ||
id: determine_version_number | ||
run: echo "VERSION_NUMBER=$($env:GITHUB_REF_NAME.Replace('release/v', ''))" >> $env:GITHUB_OUTPUT | ||
- name: Determine Version Notes | ||
id: determine_release_notes | ||
run: | | ||
echo "VERSION_NOTES<<EOF" >> $env:GITHUB_OUTPUT | ||
echo $((Get-Content -Raw WireGuardServerForWindows\VersionInfo2.xml | Select-String "(?s)<VersionNotes>(.*)<\/VersionNotes>").Matches.Groups[1].Value) >> $env:GITHUB_OUTPUT | ||
echo "EOF" >> $env:GITHUB_OUTPUT | ||
- name: Setup MSBuild | ||
uses: microsoft/setup-msbuild@main | ||
- name: Download .NET Core Runtime | ||
run: Invoke-WebRequest https://download.visualstudio.microsoft.com/download/pr/3f56df9d-6dc0-4897-a49b-ea891f9ad0f4/076e353a29908c70e24ba8b8d0daefb8/windowsdesktop-runtime-3.1.21-win-x64.exe -OutFile Installer\windowsdesktop-runtime-3.1.21-win-x64.exe | ||
- name: Generate Release | ||
run: Installer\GenerateRelease.ps1 | ||
- name: Publish Release | ||
uses: softprops/action-gh-release@master | ||
with: | ||
files: Installer/WS4WSetup-${{ steps.determine_version_number.outputs.VERSION_NUMBER }}.exe | ||
fail_on_unmatched_files: true | ||
tag_name: v${{ steps.determine_version_number.outputs.VERSION_NUMBER }} | ||
body: ${{ steps.determine_release_notes.outputs.VERSION_NOTES }} | ||
draft: true |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,28 @@ | ||
name: Update Versions | ||
name: 2. Update Versions | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version_notes: | ||
description: 'Version Notes (example, including quotes: " - First change`n - Second Change")' | ||
|
||
jobs: | ||
update_versions: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Determine Version Number | ||
id: determine_version_number | ||
run: echo "VERSION_NUMBER=$($env:GITHUB_REF_NAME.Replace('release/v', ''))" >> $env:GITHUB_OUTPUT | ||
- name: Run UpdateVersions.ps1 | ||
run: Installer\UpdateVersions.ps1 ${{ steps.determine_version_number.outputs.VERSION_NUMBER }} ${{ github.event.inputs.version_notes }} | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@main | ||
with: | ||
commit-message: Bump version to ${{ steps.determine_version_number.outputs.VERSION_NUMBER }} | ||
title: Bump version to ${{ steps.determine_version_number.outputs.VERSION_NUMBER }} | ||
body: > | ||
Bump version to ${{ steps.determine_version_number.outputs.VERSION_NUMBER }} | ||
branch: feature/update-versions-${{ steps.determine_version_number.outputs.VERSION_NUMBER }} |
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
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