From ee23df3cec4b1db192472659108d4b9e7844bfb5 Mon Sep 17 00:00:00 2001 From: smdn Date: Tue, 17 Sep 2024 19:46:40 +0900 Subject: [PATCH] update for the expected next version 4.15 --- .../instructions-generate-artifacts.md | 40 ++++++++++--------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/doc/workflows/instructions-generate-artifacts.md b/doc/workflows/instructions-generate-artifacts.md index 5a7e91a..8a412cc 100644 --- a/doc/workflows/instructions-generate-artifacts.md +++ b/doc/workflows/instructions-generate-artifacts.md @@ -18,7 +18,7 @@ git push github main When actually executing, replace the remote name with `origin` and so on as appropriate. ## Notes for the version used in this document -The instructions in this document generates artifacts for Highlight version **4.14**, and references **4.13** as the previous version. +The instructions in this document generates artifacts for Highlight version **4.15**, and references **4.14** as the previous version. Replace the version number with the desired version. @@ -26,7 +26,7 @@ Replace the version number with the desired version. ## Create a working branch for generating artifacts ``` -git switch -c artifact-highlight-4.14 +git switch -c artifact-highlight-4.15 ``` From then on, work on this branch. @@ -35,9 +35,9 @@ From then on, work on this branch. Change the value of `Highlight_SourceVersionMajorMinor` property in the file [src/Highlight.Build.props](../../src/Highlight.Build.props). ``` -sed -i -e 's/Highlight_SourceVersionMajorMinor>4\.13/Highlight_SourceVersionMajorMinor>4\.14/g' src/Highlight.Build.props +sed -i -e 's/Highlight_SourceVersionMajorMinor>4\.14/Highlight_SourceVersionMajorMinor>4\.15/g' src/Highlight.Build.props -git commit -m "bump build target version up to highlight-4.14" -- src/Highlight.Build.props +git commit -m "bump build target version up to highlight-4.15" -- src/Highlight.Build.props ``` Commit this change as it will be used in subsequent GitHub workflows. @@ -54,20 +54,20 @@ Check for differences in generated source files of the bindings. ``` cd src/Smdn.LibHighlightSharp.Bindings/Smdn.LibHighlightSharp.Bindings/ -diff highlight-4.13/ highlight-4.14/ +diff highlight-4.14/ highlight-4.15/ cd - ``` Then, commit the generated source files. ``` -git add src/Smdn.LibHighlightSharp.Bindings/Smdn.LibHighlightSharp.Bindings/highlight-4.14/ -git commit -m "add bindings for highlight-4.14" -- src/Smdn.LibHighlightSharp.Bindings/Smdn.LibHighlightSharp.Bindings/highlight-4.14/ +git add src/Smdn.LibHighlightSharp.Bindings/Smdn.LibHighlightSharp.Bindings/highlight-4.15/ +git commit -m "add bindings for highlight-4.15" -- src/Smdn.LibHighlightSharp.Bindings/Smdn.LibHighlightSharp.Bindings/highlight-4.15/ ``` ### Push the working branch ``` -git push github artifact-highlight-4.14 +git push github artifact-highlight-4.15 ``` ### Generate native binaries @@ -85,13 +85,13 @@ These PRs merge the created artifacts into a working branch. Changes to `SHA1SUM Fetch the changes up to this point. ``` -git pull github artifact-highlight-4.14 +git pull github artifact-highlight-4.15 ``` Create a PR to merge the changes up to this point into the `main` branch. ``` -gh pr create --base main --head artifact-highlight-4.14 --assignee @me --title "Add artifact highlight-4.14" --fill +gh pr create --base main --head artifact-highlight-4.15 --assignee @me --title "Add artifact highlight-4.15" --fill ``` Then, merge a PR created by this command, after testing and other checks have been completed. @@ -101,7 +101,7 @@ Then, merge a PR created by this command, after testing and other checks have be git fetch github --prune git switch main git pull github main -git branch -d artifact-highlight-4.14 +git branch -d artifact-highlight-4.15 ``` ## Prepare for packaging and release @@ -123,7 +123,7 @@ git diff src/Smdn.LibHighlightSharp.Bindings/CompatibilitySuppressions.xml Commit if there are any changes. ``` -git commit -m "add CompatibilitySuppressions entries for highlight >=4.14" -- src/Smdn.LibHighlightSharp.Bindings/CompatibilitySuppressions.xml +git commit -m "add CompatibilitySuppressions entries for highlight >=4.15" -- src/Smdn.LibHighlightSharp.Bindings/CompatibilitySuppressions.xml ``` ### Push changes made up to this point @@ -140,15 +140,17 @@ If necessary, also run a test workflow. Set the tag and trigger the release workflow. When trigger the workflow, ensure that the Actions secrets are properly updated and not expired. ``` -git tag -m "new release" new-release/main/Smdn.LibHighlightSharp.LangDefs-4.14.0 -git tag -m "new release" new-release/main/Smdn.LibHighlightSharp.Themes-4.14.0 -git tag -m "new release" new-release/main/Smdn.LibHighlightSharp.Bindings-4.14.0 +git tag -m "new release" new-release/main/Smdn.LibHighlightSharp.LangDefs-4.15.0 +git tag -m "new release" new-release/main/Smdn.LibHighlightSharp.Themes-4.15.0 +git tag -m "new release" new-release/main/Smdn.LibHighlightSharp.Bindings-4.15.0 -git push github main --tags +git push github new-release/main/Smdn.LibHighlightSharp.LangDefs-4.15.0 +git push github new-release/main/Smdn.LibHighlightSharp.Themes-4.15.0 +git push github new-release/main/Smdn.LibHighlightSharp.Bindings-4.15.0 -git tag -d new-release/main/Smdn.LibHighlightSharp.LangDefs-4.14.0 -git tag -d new-release/main/Smdn.LibHighlightSharp.Themes-4.14.0 -git tag -d new-release/main/Smdn.LibHighlightSharp.Bindings-4.14.0 +git tag -d new-release/main/Smdn.LibHighlightSharp.LangDefs-4.15.0 +git tag -d new-release/main/Smdn.LibHighlightSharp.Themes-4.15.0 +git tag -d new-release/main/Smdn.LibHighlightSharp.Bindings-4.15.0 ``` ### Pull changes in the release