@@ -68,9 +68,104 @@ jobs:
6868 key : ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/package-lock.json')) }}
6969 - name : Versioning
7070 env :
71- GH_TOKEN : ${{ secrets.GH_TOKEN }}
71+ HUSKY : 0
7272 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
7373 NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
74- HUSKY : 0
7574 run : |
76- npx -p semantic-release -p @semantic-release/git -p @semantic-release/changelog -p @semantic-release/exec -p @semantic-release/github semantic-release --provider=github --debug=true
75+ npx -p semantic-release -p @semantic-release/git -p @semantic-release/changelog -p @semantic-release/exec -p @semantic-release/github semantic-release --provider=github
76+
77+ build-playground :
78+ name : Build (Playground)
79+ needs : semantic-version
80+ runs-on : ${{ matrix.os }}
81+
82+ strategy :
83+ matrix :
84+ os : [ubuntu-latest]
85+ node : [20]
86+
87+ steps :
88+ - uses : actions/setup-node@v4
89+ with :
90+ node-version : ${{ matrix.node }}
91+ - name : Checkout Repo
92+ uses : actions/checkout@v4
93+ - name : cache node_modules
94+ uses : actions/cache@v4
95+ id : cache
96+ with :
97+ path : node_modules
98+ key : ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/package-lock.json')) }}
99+ - name : Build
100+ run : |
101+ npm run build
102+ touch playground/dist/.nojekyll
103+ env :
104+ BASE_URL : /vue-semantic-structure/playground/
105+ VITE_GITHUB_URL : https://github.com/basics/vue-semantic-structure
106+ - name : Archive Production Artifact
107+ uses : actions/upload-artifact@v4
108+ with :
109+ name : playgroundArtifact
110+ path : playground/dist
111+
112+ build-docs :
113+ name : Build (Docs)
114+ needs : semantic-version
115+ runs-on : ${{ matrix.os }}
116+
117+ strategy :
118+ matrix :
119+ os : [ubuntu-latest]
120+ node : [20]
121+
122+ steps :
123+ - uses : actions/setup-node@v4
124+ with :
125+ node-version : ${{ matrix.node }}
126+ - name : Checkout Repo
127+ uses : actions/checkout@v4
128+ - name : cache docs/node_modules
129+ uses : actions/cache@v4
130+ id : cache
131+ with :
132+ path : |
133+ node_modules
134+ key : ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/package-lock.json')) }}
135+ - name : Build
136+ run : |
137+ npm run docs:build
138+ touch docs/.vitepress/dist/.nojekyll
139+ env :
140+ BASE_URL : /vue-semantic-structure/
141+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
142+ - name : Archive Production Artifact
143+ uses : actions/upload-artifact@v4
144+ with :
145+ name : docsArtifact
146+ path : docs/.vitepress/dist
147+
148+ deploy-ghpages :
149+ name : Deploy (GH-Pages)
150+ needs : [build-docs, build-playground]
151+ runs-on : ${{ matrix.os }}
152+ strategy :
153+ matrix :
154+ os : [ubuntu-latest]
155+ node : [20]
156+ steps :
157+ - name : Download Artifact (Docs)
158+ uses : actions/download-artifact@v4
159+ with :
160+ name : docsArtifact
161+ path : public
162+ - name : Download Artifact (Playground)
163+ uses : actions/download-artifact@v4
164+ with :
165+ name : playgroundArtifact
166+ path : public/playground
167+ - name : Deploy to GH-Pages
168+ uses : peaceiris/actions-gh-pages@v4
169+ with :
170+ github_token : ${{ secrets.GITHUB_TOKEN }}
171+ publish_dir : public
0 commit comments