diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d3b013ca..37c8c7e4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,6 +3,9 @@ on: [pull_request] jobs: preview: runs-on: "runs-on=${{ github.run_id }}/family=g4dn.2xlarge/image=quantecon_ubuntu2404/volume=80gb/spot=false" + permissions: + contents: read + pull-requests: write steps: - uses: actions/checkout@v7 with: @@ -69,13 +72,13 @@ jobs: with: name: execution-reports path: _build/html/reports + - name: Setup Node.js + uses: actions/setup-node@v6 + with: + node-version: '20' - name: Preview Deploy to Netlify - uses: nwtgck/actions-netlify@v4 + uses: quantecon/actions/preview-netlify@v0.8.0 with: - publish-dir: '_build/html/' - production-branch: main - github-token: ${{ secrets.GITHUB_TOKEN }} - deploy-message: "Preview Deploy from GitHub Actions" - env: - NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} - NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} + netlify-auth-token: ${{ secrets.NETLIFY_AUTH_TOKEN }} + netlify-site-id: ${{ secrets.NETLIFY_SITE_ID }} + build-dir: _build/html diff --git a/.github/workflows/collab.yml b/.github/workflows/collab.yml index be2e31d3..c851d24b 100644 --- a/.github/workflows/collab.yml +++ b/.github/workflows/collab.yml @@ -48,13 +48,3 @@ jobs: with: name: execution-reports path: _build/html/reports - - name: Preview Deploy to Netlify - uses: nwtgck/actions-netlify@v4 - with: - publish-dir: '_build/html/' - production-branch: main - github-token: ${{ secrets.GITHUB_TOKEN }} - deploy-message: "Preview Deploy from GitHub Actions" - env: - NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} - NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}