cd: optimize image loading, use colorful windows 🎨 #13
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
| on: | |
| push: | |
| branches: [main] | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: LinqLover/create-image@latest | |
| id: create-image | |
| with: | |
| squeak-version: trunk | |
| prepare-script: ./scripts/prepareImage.st | |
| postpare-script: ./scripts/postpareImage.st | |
| - name: Prepare gh-pages content all-in-one bundle | |
| run: | | |
| mkdir -p gh-pages | |
| zip="${{ steps.create-image.outputs.bundle-path }}" | |
| echo "Extracting: $zip" | |
| unzip -j "$zip" "*.image" "*.changes" "*.sources" -d gh-pages/ | |
| mv gh-pages/Squeak*.image gh-pages/xnb-demo.image | |
| mv gh-pages/Squeak*.changes gh-pages/xnb-demo.changes | |
| cp -r demo/* gh-pages/ | |
| - name: Deploy to gh-pages | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./gh-pages | |
| user_name: github-actions[bot] | |
| user_email: github-actions[bot]@users.noreply.github.com | |
| commit_message: Deploy for ${{ github.sha }} |