parent
b51635c515
commit
2360522111
|
|
@ -13,6 +13,13 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set version from tag
|
||||
run: |
|
||||
VER="${GITHUB_REF_NAME#v}"
|
||||
sed -i "s|<Version>.*</Version>|<Version>${VER}</Version>|" AutoBackup.csproj
|
||||
sed -i "s|<AssemblyVersion>.*</AssemblyVersion>|<AssemblyVersion>${VER}</AssemblyVersion>|" AutoBackup.csproj
|
||||
sed -i "s|<FileVersion>.*</FileVersion>|<FileVersion>${VER}</FileVersion>|" AutoBackup.csproj
|
||||
|
||||
- uses: actions/setup-dotnet@v4
|
||||
with:
|
||||
dotnet-version: |
|
||||
|
|
@ -40,6 +47,13 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set version from tag
|
||||
run: |
|
||||
VER="${GITHUB_REF_NAME#v}"
|
||||
sed -i "s|<Version>.*</Version>|<Version>${VER}</Version>|" AutoBackup.csproj
|
||||
sed -i "s|<AssemblyVersion>.*</AssemblyVersion>|<AssemblyVersion>${VER}</AssemblyVersion>|" AutoBackup.csproj
|
||||
sed -i "s|<FileVersion>.*</FileVersion>|<FileVersion>${VER}</FileVersion>|" AutoBackup.csproj
|
||||
|
||||
- uses: actions/setup-dotnet@v4
|
||||
with:
|
||||
dotnet-version: |
|
||||
|
|
|
|||
Loading…
Reference in New Issue