github.com/NVIDIA/aistore@v1.3.23-0.20240517131212-7df6609be51d/.github/workflows/deploy-website.yml (about) 1 name: Deploy website on Netlify 2 on: 3 push: 4 branches: 5 - main 6 pull_request: 7 jobs: 8 deploy_website: 9 runs-on: ubuntu-latest 10 defaults: 11 run: 12 working-directory: ./docs 13 steps: 14 - name: Checkout 15 uses: actions/checkout@v4 16 - uses: ruby/setup-ruby@v1 17 with: 18 ruby-version: 3.1.3 19 - run: | 20 bundle install 21 bundle exec jekyll build 22 - name: Install Netfli CLI 23 run: npm install netlify-cli --save-dev 24 - name: Deploy site on Netlify 25 env: 26 NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} 27 NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} 28 run: netlify deploy --dir=_site --prod