Merge pull request #44 from ThomasFaria/IDE-python-init #414
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: ci | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/[email protected] | |
- uses: bahmutov/[email protected] | |
- run: yarn build | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: dist | |
path: dist | |
github_pages: | |
needs: build | |
runs-on: ubuntu-latest | |
if: github.event_name == 'push' | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/download-artifact@v4 | |
with: | |
name: dist | |
path: dist | |
- uses: actions/[email protected] | |
- run: git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${{github.repository}}.git | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- run: npx -y -p [email protected] gh-pages -d dist -u "github-actions-bot <[email protected]>" |