Skip to content

Commit

Permalink
Update pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
PassiveModding committed Dec 17, 2023
1 parent 316d4ad commit b5d96f7
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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]"
Expand Down
2 changes: 1 addition & 1 deletion Meddle/Meddle.Plugin/Meddle.Plugin.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Version>0.0.1</Version>
<Version>0.0.3</Version>
<TargetFramework>net7.0-windows</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
Expand Down
10 changes: 5 additions & 5 deletions repo.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
"Name": "Meddle",
"InternalName": "Meddle.Plugin",
"Description": "Did I mention I'm a model?",
"AssemblyVersion": "0.0.2",
"TestingAssemblyVersion": "0.0.2",
"AssemblyVersion": "0.0.3",
"TestingAssemblyVersion": "0.0.3",
"RepoUrl": "https://github.com/PassiveModding/Meddle",
"ApplicableVersion": "any",
"DalamudApiLevel": 9,
"Tags": [
"Xande",
"Models"
],
"DownloadLinkInstall": "https://github.com/PassiveModding/Meddle/releases/download/v0.0.2/latest.zip",
"DownloadLinkTesting": "https://github.com/PassiveModding/Meddle/releases/download/v0.0.2/latest.zip",
"DownloadLinkUpdate": "https://github.com/PassiveModding/Meddle/releases/download/v0.0.2/latest.zip"
"DownloadLinkInstall": "https://github.com/PassiveModding/Meddle/releases/download/v0.0.3/latest.zip",
"DownloadLinkTesting": "https://github.com/PassiveModding/Meddle/releases/download/v0.0.3/latest.zip",
"DownloadLinkUpdate": "https://github.com/PassiveModding/Meddle/releases/download/v0.0.3/latest.zip"
}
]

0 comments on commit b5d96f7

Please sign in to comment.