path.basename を使わないように変更 #88
This file contains 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: Deploy | |
on: | |
push: | |
branches: | |
- master | |
tags: | |
- "!*" | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: "pages" | |
cancel-in-progress: false | |
jobs: | |
build-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
repository: LLK/scratch-gui | |
ref: develop | |
- run: npm install | |
- uses: actions/checkout@v4 | |
with: | |
path: ./tm2scratch | |
- uses: actions/checkout@v4 | |
with: | |
repository: yokobond/scratch-microbit-more | |
path: ./microbitMore | |
- run: sh ./microbitMore/install-stretch3.sh | |
- run: sh ./tm2scratch/install.sh | |
- run: sh ./tm2scratch/add_ga_tracking_code.sh | |
- run: NODE_OPTIONS=--openssl-legacy-provider npm run build | |
- run: cp ./tm2scratch/favicon.ico ./build/static/favicon.ico | |
- name: Setup Pages | |
uses: actions/configure-pages@v4 | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: 'build' | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 | |
- uses: rtCamp/action-slack-notify@v2 | |
env: | |
SLACK_USERNAME: TM2Scratch | |
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | |
SLACK_MESSAGE: 'tm2scratch is deployed! :rocket:' | |
SLACK_ICON: https://champierre.github.io/tm2scratch/static/favicon.ico |