File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed
Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change 6969 runs-on : ubuntu-latest
7070 needs : test
7171 permissions :
72- actions : write
7372 contents : write
7473 packages : write
74+ outputs :
75+ version : ${{ steps.version.outputs.version }}
7576 steps :
7677 - uses : actions/checkout@v6
7778 with :
@@ -121,6 +122,17 @@ jobs:
121122 git commit -m "chore: bump Chart.yaml to ${{ steps.version.outputs.version }} [skip ci]"
122123 git push origin main
123124
125+ docs-deploy :
126+ name : Deploy Documentation
127+ runs-on : ubuntu-latest
128+ needs : helm-publish
129+ permissions :
130+ contents : write
131+ steps :
132+ - uses : actions/checkout@v6
133+ with :
134+ ref : main # Checkout updated main with new Chart.yaml version
135+
124136 - name : Setup Hugo
125137 uses : peaceiris/actions-hugo@v3
126138 with :
@@ -131,14 +143,14 @@ jobs:
131143 run : |
132144 mkdir -p docs/data
133145 cat > docs/data/build.yaml << EOF
134- version: "${{ steps.version .outputs.version }}"
146+ version: "${{ needs.helm-publish .outputs.version }}"
135147 date: "$(date -u +'%Y-%m-%d')"
136148 EOF
137149
138150 - name : Build docs
139151 run : hugo --source docs --minify
140152
141- - name : Deploy docs to docs branch
153+ - name : Deploy to docs branch
142154 uses : peaceiris/actions-gh-pages@v4
143155 with :
144156 github_token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments