-
Notifications
You must be signed in to change notification settings - Fork 1
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 #92 from oblivioncth/dev
Merge to master for v0.4.2
- Loading branch information
Showing
12 changed files
with
223 additions
and
153 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
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
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 |
---|---|---|
|
@@ -5,8 +5,6 @@ on: | |
branches: | ||
- 'master' | ||
env: | ||
ci_bot_username: ObyBotCI | ||
ci_bot_email: [email protected] | ||
qx_qtd_win_artifact_path: ${{ github.workspace }}/QxQtDWin | ||
qx_qts_win_artifact_path: ${{ github.workspace }}/QxQtSWin | ||
qx_qtd_linux_artifact_path: ${{ github.workspace }}/QxQtDLinux | ||
|
@@ -20,29 +18,26 @@ jobs: | |
outputs: | ||
version_tag: ${{ steps.tag_master.outputs.new_tag }} | ||
steps: | ||
- name: Checkout Qx Master | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup git user for bot | ||
run: | | ||
git config --global user.name "${{ env.ci_bot_username }}" | ||
git config --global user.email "${{ env.ci_bot_email }}" | ||
- name: Get project version | ||
id: get-proj-ver | ||
uses: oblivioncth/actions/cmake/get-project-version@dev | ||
- name: Set Git user to ObyBotCI | ||
uses: oblivioncth/actions/git/set-git-user-to-oby-bot@dev | ||
- name: Checkout Project | ||
id: proj-checkout | ||
uses: oblivioncth/actions/git/smart-checkout@dev | ||
- name: Tag master with new version tag | ||
id: tag_master | ||
working-directory: ${{ steps.proj-checkout.outputs.path }} | ||
env: | ||
match_start: set\(QX_BASE_VERSION | ||
match_end: \) | ||
new_version: ${{ steps.get-proj-ver.outputs.version }} | ||
run: | | ||
$project_lists = Get-Content -Raw CMakeLists.txt | ||
if(!($project_lists -match '(?<=${{ env.match_start }})(.*)(?=${{ env.match_end }})')){ | ||
throw "Could not get base version!" | ||
} | ||
$new_tag = "v$($Matches[1].Trim())" | ||
$new_tag = "v${Env:new_version}" | ||
echo "new_tag=$new_tag" >> $Env:GITHUB_OUTPUT | ||
git tag -a $new_tag -m "Release $new_tag" | ||
git push --tags | ||
- name: Move 'latest' tag | ||
working-directory: ${{ steps.proj-checkout.outputs.path }} | ||
run: | | ||
echo "Checking for 'latest' tag..." | ||
if(git tag -l latest){ | ||
|
@@ -57,6 +52,7 @@ jobs: | |
git push origin latest | ||
- name: Fast-forward merge master into to dev | ||
if: always() | ||
working-directory: ${{ steps.proj-checkout.outputs.path }} | ||
run: | | ||
git checkout dev | ||
git merge master --ff-only | ||
|
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
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
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
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
Oops, something went wrong.