File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -192,6 +192,24 @@ jobs:
192192 github_token : ${{ secrets.GITHUB_TOKEN }}
193193 publish_dir : ./build
194194 full_commit_message : " Build for ${{ github.sha }} ${{ github.event.head_commit.message }}"
195+ deploy-gh-pages-smalruby-app :
196+ needs : [test-integration, test-unit]
197+ if : (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/heads/hotfix/'))
198+ runs-on : ubuntu-latest
199+ steps :
200+ - uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
201+ - name : Retrieve npm dependencies
202+ uses : actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
203+ with :
204+ path :
205+ node_modules
206+ key : ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
207+ - name : Retrieve Build Directory
208+ uses : actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
209+ with :
210+ path :
211+ ./build
212+ key : ${{ runner.os }}-build-${{ hashFiles('package-lock.json') }}
195213 - name : Deploy playground to Smalruby.app GitHub Pages
196214 uses : peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
197215 with :
You can’t perform that action at this time.
0 commit comments