|
1 | 1 | # Publish SPDX specification to https://spdx.github.io/spdx-spec/
|
2 | 2 | #
|
3 | 3 | # There will be this workflow in "main", "develop", and "support" branches.
|
4 |
| -# Each of them publish to a different URL. |
| 4 | +# Each branch publishes to a different URL. |
5 | 5 | #
|
6 | 6 | # For example,
|
7 |
| -# the workflow in "main" may publish to https://spdx.github.io/spdx-spec/3.0.1/, |
8 |
| -# the workflow in "develop" may publish to https://spdx.github.io/spdx-spec/3.1-dev/, |
9 |
| -# the workflow in "support/3.0" may publish to https://spdx.github.io/spdx-spec/3.0.0/. |
| 7 | +# the workflow in "main" may publish to https://spdx.github.io/spdx-spec/v3.0.1/, |
| 8 | +# the workflow in "develop" may publish to https://spdx.github.io/spdx-spec/v3.1.x-dev/, |
| 9 | +# the workflow in "support/3.0" may publish to https://spdx.github.io/spdx-spec/v3.0.x/. |
10 | 10 | #
|
11 | 11 | # The workflow should be configured to have an URL without a version number
|
12 | 12 | # specified be redirected to an URL published from "main" branch.
|
@@ -40,17 +40,17 @@ jobs:
|
40 | 40 | env:
|
41 | 41 | REF_SPEC: "develop" # spdx-spec branch: "main" or "develop" or "support/x.y" or tag/commit ID
|
42 | 42 | REF_MODEL: "develop" # spdx-3-model branch: "main" or "develop" or "support/x.y" or tag/commit ID
|
43 |
| - REF_PARSER: "main" # spec-parser branch: "main" or commit ID |
| 43 | + REF_PARSER: "main" # spec-parser branch: "main" or tag/commit ID |
44 | 44 | GH_PAGES_BRANCH: "gh-pages" # spdx-spec branch to publish HTML to
|
45 | 45 | VERSION_DEFAULT: "v3.0.1" # Default version:
|
46 | 46 | # - A version to be redirected to from the URL without
|
47 | 47 | # a version number specified
|
48 |
| - # - Should be a latest stable version from "main" branch |
49 |
| - # - VERSION_DEFAULT should be the same in this workflow |
50 |
| - # across all branches/tags |
51 |
| - # - VERSION_DEFAULT should also match with the |
| 48 | + # - Should be the latest stable version from the "main" branch |
| 49 | + # - VERSION_DEFAULT should be the same across all |
| 50 | + # branches/tags |
| 51 | + # - VERSION_DEFAULT should also match the |
52 | 52 | # mike's canonical_version in mkdocs.yml
|
53 |
| - VERSION: "v3.1-dev" # Publishing version, to be publish by this workflow: |
| 53 | + VERSION: "v3.1.x-dev" # Publishing version, to be published from this branch: |
54 | 54 | # - VERSION can be different from VERSION_DEFAULT;
|
55 | 55 | # For example, if VERSION is a draft/release candidate,
|
56 | 56 | # or if VERSION is a stable version that is behind the
|
|
85 | 85 | REDIRECT_TEMPLATE_PATH: "etc/redirect-template.html" # URL redirect HTML template
|
86 | 86 | steps:
|
87 | 87 | - name: Expand version aliases to include a version without 'v' prefix
|
88 |
| - # VERSION: "v3.0.1" |
89 |
| - # Original VERSION_ALIASES: "latest v3.0" |
90 |
| - # Expanded VERSION_ALIASES: "3.0.1 latest v3.0 3.0" |
| 88 | + # For example, given |
| 89 | + # - VERSION: "v3.0.1"; and |
| 90 | + # - Original VERSION_ALIASES: "latest v3.0" |
| 91 | + # the expanded VERSION_ALIASES will be "3.0.1 latest v3.0 3.0" |
91 | 92 | run: |
|
92 | 93 | echo VERSION: $VERSION
|
93 | 94 | echo Original VERSION_ALIASES: $VERSION_ALIASES
|
|
0 commit comments