Skip to content

Commit 57cc7ec

Browse files
authored
Merge pull request #2 from tencentcloudstack/fix/release-config
fix: modify release config
2 parents 4d90471 + 1e6f983 commit 57cc7ec

File tree

2 files changed

+57
-57
lines changed

2 files changed

+57
-57
lines changed
Lines changed: 55 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,55 @@
1-
name: Notify Integration Release (Tag)
2-
on:
3-
push:
4-
tags:
5-
- '*.*.*' # Proper releases
6-
jobs:
7-
strip-version:
8-
runs-on: ubuntu-latest
9-
outputs:
10-
packer-version: ${{ steps.strip.outputs.packer-version }}
11-
steps:
12-
- name: Strip leading v from version tag
13-
id: strip
14-
env:
15-
REF: ${{ github.ref_name }}
16-
run: |
17-
echo "packer-version=$(echo "$REF" | sed -E 's/v?([0-9]+\.[0-9]+\.[0-9]+)/\1/')" >> "$GITHUB_OUTPUT"
18-
notify-release:
19-
needs:
20-
- strip-version
21-
runs-on: ubuntu-latest
22-
steps:
23-
- name: Checkout this repo
24-
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
25-
with:
26-
ref: ${{ github.ref }}
27-
# Ensure that Docs are Compiled
28-
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
29-
- shell: bash
30-
run: make generate
31-
- shell: bash
32-
run: |
33-
uncommitted="$(git status -s)"
34-
if [[ -z "$uncommitted" ]]; then
35-
echo "OK"
36-
else
37-
echo "Docs have been updated, but the compiled docs have not been committed."
38-
echo "Run 'make generate', and commit the result to resolve this error."
39-
echo "Generated but uncommitted files:"
40-
echo "$uncommitted"
41-
exit 1
42-
fi
43-
# Perform the Release
44-
- name: Checkout integration-release-action
45-
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
46-
with:
47-
repository: hashicorp/integration-release-action
48-
path: ./integration-release-action
49-
- name: Notify Release
50-
uses: ./integration-release-action
51-
with:
52-
integration_identifier: "packer/hashicorp/tencentcloud"
53-
release_version: ${{ needs.strip-version.outputs.packer-version }}
54-
release_sha: ${{ github.ref }}
55-
github_token: ${{ secrets.GITHUB_TOKEN }}
1+
# name: Notify Integration Release (Tag)
2+
# on:
3+
# push:
4+
# tags:
5+
# - '*.*.*' # Proper releases
6+
# jobs:
7+
# strip-version:
8+
# runs-on: ubuntu-latest
9+
# outputs:
10+
# packer-version: ${{ steps.strip.outputs.packer-version }}
11+
# steps:
12+
# - name: Strip leading v from version tag
13+
# id: strip
14+
# env:
15+
# REF: ${{ github.ref_name }}
16+
# run: |
17+
# echo "packer-version=$(echo "$REF" | sed -E 's/v?([0-9]+\.[0-9]+\.[0-9]+)/\1/')" >> "$GITHUB_OUTPUT"
18+
# notify-release:
19+
# needs:
20+
# - strip-version
21+
# runs-on: ubuntu-latest
22+
# steps:
23+
# - name: Checkout this repo
24+
# uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
25+
# with:
26+
# ref: ${{ github.ref }}
27+
# # Ensure that Docs are Compiled
28+
# - uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
29+
# - shell: bash
30+
# run: make generate
31+
# - shell: bash
32+
# run: |
33+
# uncommitted="$(git status -s)"
34+
# if [[ -z "$uncommitted" ]]; then
35+
# echo "OK"
36+
# else
37+
# echo "Docs have been updated, but the compiled docs have not been committed."
38+
# echo "Run 'make generate', and commit the result to resolve this error."
39+
# echo "Generated but uncommitted files:"
40+
# echo "$uncommitted"
41+
# exit 1
42+
# fi
43+
# # Perform the Release
44+
# - name: Checkout integration-release-action
45+
# uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
46+
# with:
47+
# repository: hashicorp/integration-release-action
48+
# path: ./integration-release-action
49+
# - name: Notify Release
50+
# uses: ./integration-release-action
51+
# with:
52+
# integration_identifier: "packer/hashicorp/tencentcloud"
53+
# release_version: ${{ needs.strip-version.outputs.packer-version }}
54+
# release_sha: ${{ github.ref }}
55+
# github_token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ jobs:
4848
- name: Describe plugin
4949
id: plugin_describe
5050
run: echo "api_version=$(go run . describe | jq -r '.api_version')" >> "$GITHUB_OUTPUT"
51-
- name: Install signore
52-
uses: hashicorp/setup-signore-package@v1
51+
# - name: Install signore
52+
# uses: hashicorp/setup-signore-package@v1
5353
- name: Run GoReleaser
5454
uses: goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8 # v5.0.0
5555
with:

0 commit comments

Comments
 (0)