migrate docs to Openlineage/Openlineage repo #23
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: Build & Deploy spec to Netlify | |
on: | |
push: | |
branches: # should be pull request | |
- migrate-docs | |
#- main # spec is released whenever pushed to main | |
jobs: | |
generate_spec: | |
# if: github.event.pull_request.merged == true | |
name: 'Commit Spec definition' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Check & Commit spec changes | |
run: ./.github/workflows/release_spec.sh | |
netlify_deploy: | |
# if: github.event.pull_request.merged == true | |
name: 'Deploy to Netlify' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Repository Checkout | |
uses: actions/checkout@v4 | |
- name: Setup NodeJS | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: "npm" | |
- name: Install Netlify | |
run: npm install [email protected] -g | |
- name: Install Dependencies | |
run: | | |
cd website | |
yarn | |
- name: Build project | |
run: | | |
cd website | |
yarn build | |
- name: Deploy to Netlify | |
id: netlify_deploy | |
run: | | |
cd website | |
netlify deploy \ | |
--dir build \ | |
--site ${{ secrets.NETLIFY_SITE_ID }} \ | |
--auth ${{ secrets.NETLIFY_TOKEN_SECRET }} | |
--prod |