diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index a7c60246b6c..b052e291b10 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -192,6 +192,24 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./build full_commit_message: "Build for ${{ github.sha }} ${{ github.event.head_commit.message }}" + deploy-gh-pages-smalruby-app: + needs: [test-integration, test-unit] + if: (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/heads/hotfix/')) + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 + - name: Retrieve npm dependencies + uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3 + with: + path: + node_modules + key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }} + - name: Retrieve Build Directory + uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3 + with: + path: + ./build + key: ${{ runner.os }}-build-${{ hashFiles('package-lock.json') }} - name: Deploy playground to Smalruby.app GitHub Pages uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0 with: