Merge branch 'develop' of https://github.com/Nitro-Bolt/scratch-block… #20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build and Push | |
| on: | |
| push: | |
| branches: | |
| - develop | |
| permissions: | |
| contents: write | |
| pages: write | |
| id-token: write | |
| pull-requests: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/[email protected] | |
| - name: Set up Node.js | |
| uses: actions/[email protected] | |
| with: | |
| node-version: '21' | |
| cache: npm | |
| - name: Set up Python | |
| uses: actions/[email protected] | |
| with: | |
| python-version: '3.12.1' | |
| - name: Set up Java | |
| uses: actions/[email protected] | |
| with: | |
| distribution: 'temurin' | |
| java-version: '17' | |
| java-package: 'jre' | |
| - name: Install Dependencies and Build | |
| run: npm ci | |
| - name: Setup Pages | |
| uses: actions/configure-pages@v5 | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: './' | |
| - name: Deploy to GitHub Pages | |
| uses: actions/deploy-pages@v4 | |
| - name: Checkout to develop-builds | |
| uses: actions/checkout@v3 | |
| with: | |
| ref: develop-builds | |
| - name: Clear out things | |
| run: | | |
| rm -rf ./* | |
| - name: Download artifact | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: github-pages | |
| path: './' | |
| - name: Extract artifact | |
| run: | | |
| tar -xf artifact.tar -C . | |
| rm -f artifact.tar | |
| rm -f .gitignore | |
| rm -rf node_modules | |
| - name: Commit | |
| uses: EndBug/[email protected] | |
| with: | |
| message: ${{ github.event.head_commit.message }} | |
| committer_name: GitHub Actions | |
| committer_email: [email protected] |