diff --git a/.github/workflows/v8-main-pre-release.yml b/.github/workflows/v8-main-pre-release.yml index b847c50..4308f59 100644 --- a/.github/workflows/v8-main-pre-release.yml +++ b/.github/workflows/v8-main-pre-release.yml @@ -3,7 +3,7 @@ name: v8 Main - Pre-release on: push: tags: - - "v8.[0-9]+.[0-9]+-[a-z]*[0-9][0-9][0-9]" + - "v8.[0-9]+.[0-9]+-[a-z]*[0-9]+" jobs: build: @@ -14,26 +14,31 @@ jobs: - uses: actions/checkout@v4 - name: Set VERSION variable from tag - run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV + run: | + git fetch --tags + $tag = git describe --tags --abbrev=0 + if ($tag.StartsWith("v")) { + $cleanTag = $tag.Substring(1) + } else { + $cleanTag = $tag + } + echo "VERSION=$cleanTag" >> $env:GITHUB_ENV - - name: Setup NuGet - uses: NuGet/setup-nuget@v2 - - - name: Restore Packages - run: nuget restore src/Method4.UmbracoMigrator.Source.sln + - name: Show VERSION + run: echo "VERSION is $env:VERSION" - name: Pack Core Project - run: dotnet pack src/Method4.UmbracoMigrator.Source.Core/Method4.UmbracoMigrator.Source.Core.csproj --configuration Release /p:Version=${VERSION} --output . + run: dotnet pack src/Method4.UmbracoMigrator.Source.Core/Method4.UmbracoMigrator.Source.Core.csproj -p:PackageVersion=$env:VERSION --configuration Release --output . - name: Pack Main Project - run: dotnet pack src/Method4.UmbracoMigrator.Source/Method4.UmbracoMigrator.Source.csproj --configuration Release /p:Version=${VERSION} --output . + run: dotnet pack src/Method4.UmbracoMigrator.Source/Method4.UmbracoMigrator.Source.csproj -p:PackageVersion=$env:VERSION --configuration Release --output . - name: Push Core Project - run: dotnet nuget push Method4.UmbracoMigrator.Source.Core.${VERSION}.nupkg --api-key ${NUGET_API_KEY} --source https://api.nuget.org/v3/index.json + run: dotnet nuget push Method4.UmbracoMigrator.Source.Core.$env:VERSION.nupkg --api-key $env:NUGET_API_KEY --source https://api.nuget.org/v3/index.json env: NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} - name: Push Main Project - run: dotnet nuget push Method4.UmbracoMigrator.Source.${VERSION}.nupkg --api-key ${NUGET_API_KEY} --source https://api.nuget.org/v3/index.json + run: dotnet nuget push Method4.UmbracoMigrator.Source.$env:VERSION.nupkg --api-key $env:NUGET_API_KEY --source https://api.nuget.org/v3/index.json env: NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} diff --git a/README.md b/README.md index d9ef324..4bc22ba 100644 --- a/README.md +++ b/README.md @@ -11,9 +11,7 @@ The Method4 Umbraco Migrator allows migrating content and media from an Umbraco This tool was originally created as an internal tool for us at Method4, to make migrating our client's Umbraco sites easy, and we've decided to make it available as an open-source package; as we believe other devs in the Umbraco community may find it useful too. -Read our blog post about this tool here: [TODO Insert Link] - -The migrator tool consists of 2 packages, _Method4.UmbracoMigrator.Source_ and _Method4.UmbracoMigrator.Target_. +The migrator tool consists of 2 packages: ### 📤 [Method4.UmbracoMigrator.Source](https://github.com/Method4Ltd/Method4.UmbracoMigrator.Source) Generates the Migration Snapshot (.zip) files that will be imported into your new Umbraco v10+ site using the Target package. diff --git a/src/Method4.UmbracoMigrator.Source/Method4.UmbracoMigrator.Source.csproj b/src/Method4.UmbracoMigrator.Source/Method4.UmbracoMigrator.Source.csproj index 51e937a..9d4954a 100644 --- a/src/Method4.UmbracoMigrator.Source/Method4.UmbracoMigrator.Source.csproj +++ b/src/Method4.UmbracoMigrator.Source/Method4.UmbracoMigrator.Source.csproj @@ -9,7 +9,7 @@ Method4.UmbracoMigrator.Source Generate migration snapshots from an Umbraco 8 site Method4.UmbracoMigrator.Source - umbraco plugin package content migration + umbraco plugin package umbraco-marketplace content migration Method4 Ltd Method4 Ltd Method4 ©️ 2024 @@ -54,4 +54,4 @@ - \ No newline at end of file +