Skip to content

Commit d16b481

Browse files
committed
ci: adjust
Signed-off-by: thxCode <thxcode0824@gmail.com>
1 parent 4b48d83 commit d16b481

2 files changed

Lines changed: 46 additions & 1 deletion

File tree

.github/workflows/ci-chart.yml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787
- name: Test
8888
run: make test chart
8989

90-
release:
90+
pack:
9191
if: ${{ startsWith(github.ref, 'refs/tags/') }}
9292
needs:
9393
- lint-test
@@ -121,3 +121,30 @@ jobs:
121121
target_dir: charts
122122
branch: github-pages
123123
linting: off
124+
125+
release:
126+
if: ${{ startsWith(github.ref, 'refs/tags/') }}
127+
runs-on: ubuntu-24.04
128+
needs:
129+
- pack
130+
steps:
131+
- name: Checkout
132+
uses: actions/checkout@v4
133+
with:
134+
ref: github-pages
135+
lfs: true
136+
fetch-depth: 0
137+
fetch-tags: true
138+
persist-credentials: false
139+
- name: Setup Pages
140+
uses: actions/configure-pages@v6
141+
- name: Build
142+
uses: actions/jekyll-build-pages@v1
143+
- name: Upload Artifact
144+
uses: actions/upload-pages-artifact@v3
145+
- name: Deploy
146+
id: deployment
147+
uses: actions/deploy-pages@v5
148+
environment:
149+
name: github-pages
150+
url: ${{ steps.deployment.outputs.page_url }}

.github/workflows/ci.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,3 +297,21 @@ jobs:
297297
docker manifest inspect "${MANIFEST_IMAGE}"
298298
docker manifest push --purge "${MANIFEST_IMAGE}"
299299
done
300+
301+
302+
release:
303+
if: ${{ startsWith(github.ref, 'refs/tags/') }}
304+
needs:
305+
- manifest
306+
runs-on: ubuntu-24.04
307+
steps:
308+
- name: Checkout
309+
uses: actions/checkout@v4
310+
with:
311+
fetch-depth: 1
312+
persist-credentials: false
313+
- name: Publish
314+
uses: softprops/action-gh-release@v2
315+
with:
316+
tag_name: "${{ github.ref_name }}"
317+
prerelease: ${{ contains(github.ref, 'rc') }}

0 commit comments

Comments
 (0)