|
12 | 12 | push: |
13 | 13 | branches: ["master"] |
14 | 14 |
|
15 | | -jobs: |
16 | | - create-semantic-tag: |
17 | | - runs-on: "ubuntu-latest" |
18 | | - outputs: |
19 | | - RELEASE_VERSION: "${{ steps.create-tag.outputs.VERSION }}" |
20 | | - steps: |
21 | | - - uses: "actions/checkout@v4" |
22 | | - |
23 | | - - name: "Create semantic tag" |
24 | | - id: "create-tag" |
25 | | - run: | |
26 | | - if [ "${{ github.ref_name == github.event.repository.default_branch }}" != "true" ]; then |
27 | | - echo "Skipping tagging because it's not the default branch" |
28 | | - exit 0 |
29 | | - fi |
30 | | -
|
31 | | - VERSION=$(echo "${{ github.event.head_commit.message }}" \ |
32 | | - | sed -nE 's/.*[Rr]elease ([0-9]+\.[0-9]+\.[0-9]+).*?/\1/p') |
| 15 | +concurrency: |
| 16 | + group: "${{ github.workflow }}-${{ github.ref_name }}" |
| 17 | + cancel-in-progress: "${{ github.ref_name != github.event.repository.default_branch }}" |
33 | 18 |
|
34 | | - if [ -z "${VERSION}" ]; then |
35 | | - echo "No semantic version found in commit message" |
36 | | - exit 0 |
37 | | - fi |
38 | | -
|
39 | | - echo "Adding semantic tag ${VERSION}..." |
40 | | - git tag "${VERSION}" |
41 | | - git push --tags |
42 | | - echo "VERSION=${VERSION}" >> "${GITHUB_OUTPUT}" |
43 | | -
|
44 | | - test: |
45 | | - needs: ["create-semantic-tag"] |
46 | | - uses: "./.github/workflows/test.yml" |
| 19 | +jobs: |
| 20 | +# create-semantic-tag: |
| 21 | +# runs-on: "ubuntu-latest" |
| 22 | +# outputs: |
| 23 | +# RELEASE_VERSION: "${{ steps.create-tag.outputs.VERSION }}" |
| 24 | +# steps: |
| 25 | +# - uses: "actions/checkout@v4" |
| 26 | +# |
| 27 | +# - name: "Create semantic tag" |
| 28 | +# id: "create-tag" |
| 29 | +# run: | |
| 30 | +# if [ "${{ github.ref_name == github.event.repository.default_branch }}" != "true" ]; then |
| 31 | +# echo "Skipping tagging because it's not the default branch" |
| 32 | +# exit 0 |
| 33 | +# fi |
| 34 | +# |
| 35 | +# VERSION=$(echo "${{ github.event.head_commit.message }}" \ |
| 36 | +# | sed -nE 's/.*[Rr]elease ([0-9]+\.[0-9]+\.[0-9]+).*?/\1/p') |
| 37 | +# |
| 38 | +# if [ -z "${VERSION}" ]; then |
| 39 | +# echo "No semantic version found in commit message" |
| 40 | +# exit 0 |
| 41 | +# fi |
| 42 | +# |
| 43 | +# echo "Adding semantic tag ${VERSION}..." |
| 44 | +# git tag "${VERSION}" |
| 45 | +# git push --tags |
| 46 | +# echo "VERSION=${VERSION}" >> "${GITHUB_OUTPUT}" |
47 | 47 |
|
48 | | - build: |
49 | | - needs: ["test"] |
50 | | - uses: "./.github/workflows/build.yml" |
| 48 | +# test: |
| 49 | +# needs: ["create-semantic-tag"] |
| 50 | +# uses: "./.github/workflows/test.yml" |
51 | 51 |
|
52 | | - release-latest: |
53 | | - if: "${{ github.ref_name == github.event.repository.default_branch }}" |
54 | | - needs: ["build"] |
55 | | - uses: "./.github/workflows/release.yml" |
56 | | - with: |
57 | | - release_name: "latest" |
| 52 | + performance: |
| 53 | + uses: "./.github/workflows/performance.yml" |
58 | 54 |
|
59 | | - release-version: |
60 | | - if: "${{ needs.create-semantic-tag.outputs.RELEASE_VERSION != '' }}" |
61 | | - needs: ["create-semantic-tag", "build"] |
62 | | - uses: "./.github/workflows/release.yml" |
63 | | - with: |
64 | | - release_name: "${{ needs.create-semantic-tag.outputs.RELEASE_VERSION }}" |
| 55 | +# build: |
| 56 | +# needs: ["test"] |
| 57 | +# uses: "./.github/workflows/build.yml" |
| 58 | +# |
| 59 | +# release-latest: |
| 60 | +# if: "${{ github.ref_name == github.event.repository.default_branch }}" |
| 61 | +# needs: ["build"] |
| 62 | +# uses: "./.github/workflows/release.yml" |
| 63 | +# with: |
| 64 | +# release_name: "latest" |
| 65 | +# |
| 66 | +# release-version: |
| 67 | +# if: "${{ needs.create-semantic-tag.outputs.RELEASE_VERSION != '' }}" |
| 68 | +# needs: ["create-semantic-tag", "build"] |
| 69 | +# uses: "./.github/workflows/release.yml" |
| 70 | +# with: |
| 71 | +# release_name: "${{ needs.create-semantic-tag.outputs.RELEASE_VERSION }}" |
| 72 | +# |
| 73 | +# deploy-docs: |
| 74 | +# needs: ["release-latest"] |
| 75 | +# uses: "./.github/workflows/doc.yml" |
0 commit comments