Skip to content

🚨 [security] Update astro 3.6.4 → 5.1.0 (major) #882

🚨 [security] Update astro 3.6.4 → 5.1.0 (major)

🚨 [security] Update astro 3.6.4 → 5.1.0 (major) #882

name: build and push draft
on: pull_request
jobs:
build-draft:
environment: beta
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: volta-cli/action@v1
- run: npm ci
- name: build
run: netlify build -o
env:
NODE_ENV: production
AIRTABLE_API_KEY: ${{ secrets.AIRTABLE_API_KEY }}
ARTICLE_FETCH_ENDPOINT: ${{ secrets.ARTICLE_FETCH_ENDPOINT }}
- name: deploy
if: success()
env:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
run: netlify deploy --dir=dist --message ${{ github.event.pull_request.html_url }} 2>&1 | tee -a ./notes.md
- name: comment PR
uses: machine-learning-apps/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
path: ./notes.md