-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
316d4ad
commit b5d96f7
Showing
3 changed files
with
18 additions
and
10 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 |
---|---|---|
|
@@ -9,7 +9,7 @@ concurrency: | |
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 | ||
|
||
# So we can use the GitHub API to create releases with the run token. | ||
permissions: | ||
|
@@ -42,6 +42,12 @@ jobs: | |
wget https://goatcorp.github.io/dalamud-distrib/latest.zip -O /tmp/dalamud.zip | ||
unzip /tmp/dalamud.zip -d /tmp/dalamud | ||
- name: Update Version in csproj | ||
run: | | ||
release_version=$(echo ${{ github.ref_name }} | sed 's/^v//') | ||
sed -i Meddle.Plugin.csproj -E \ | ||
-e 's#<Version>[0-9]*\.([0-9]*\.){0,1}[0-9]*</Version>#<Version>'"$release_version"'</Version>#g' | ||
- name: Restore Dependencies | ||
run: dotnet restore | ||
|
||
|
@@ -78,15 +84,17 @@ jobs: | |
cd ../../ | ||
release_version=$(echo ${{ github.ref_name }} | sed 's/^v//') | ||
repo_url=$(echo ${{ github.server_url }}/${{ github.repository }} | sed 's/#/\\#/g') | ||
repo_url=$(echo ${{ github.server_url }}/${{ github.repository }} | sed 's/#/\\#/g') | ||
sed -i repo.json -E \ | ||
-e 's#"AssemblyVersion": "([0-9]*\.){2,3}[0-9]*"#"AssemblyVersion": "'"$release_version"'"#g' \ | ||
-e 's#"TestingAssemblyVersion": "([0-9]*\.){2,3}[0-9]*"#"TestingAssemblyVersion": "'"$release_version"'"#' \ | ||
-e 's#"DownloadLinkInstall": "[^"]*"#"DownloadLinkInstall": "'"$repo_url/releases/download/${{ github.ref_name }}/latest.zip"'"#g' \ | ||
-e 's#"DownloadLinkTesting": "[^"]*"#"DownloadLinkTesting": "'"$repo_url/releases/download/${{ github.ref_name }}/latest.zip"'"#g' \ | ||
-e 's#"DownloadLinkUpdate": "[^"]*"#"DownloadLinkUpdate": "'"$repo_url/releases/download/${{ github.ref_name }}/latest.zip"'"#g' | ||
sed -i Meddle/Meddle.Plugin/Meddle.Plugin.csproj -E \ | ||
-e 's#<Version>[0-9]*\.([0-9]*\.){0,1}[0-9]*</Version>#<Version>'"$release_version"'</Version>#g' | ||
git add Meddle/Meddle.Plugin/Meddle.Plugin.csproj | ||
git add repo.json | ||
git config --local user.name "github-actions [bot]" | ||
git config --local user.email "[email protected]" | ||
|
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