diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5dae74242..7551d947f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,6 +1,7 @@ name: CI -on: +on: + pull_request: push: branches: - master @@ -13,23 +14,27 @@ on: # - cron: '0 0 * * *' jobs: - deploy: + build: runs-on: ubuntu-24.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v2 + - name: Install dependencies run: pip install requests + - name: Generate report run: | export VITE_BASE_DIR="/$(basename $GITHUB_REPOSITORY)/" echo "VITE_BASE_DIR: $VITE_BASE_DIR" ./run.sh + - name: Deploy GitHub pages + if : github.event_name == 'push' && github.ref == 'refs/heads/master' uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./reposense-report user_name: 'github-actions[bot]' user_email: 'github-actions[bot]@users.noreply.github.com' - commit_message: Rebuild pages at + commit_message: Rebuild pages at