From 08631c4a910ee220eb4841a3ace74b82e9faba67 Mon Sep 17 00:00:00 2001 From: Kasun Vithanage Date: Thu, 9 Nov 2023 02:28:19 +0530 Subject: [PATCH] ci: workflow --- .github/workflows/publish.yaml | 50 +++++++++++++++++----------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index dae1f20..117b79c 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -46,30 +46,30 @@ jobs: # env: # NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} - # publish-docs: - # needs: publish-npm - # runs-on: ubuntu-latest - # steps: - # - name: Checkout - # uses: actions/checkout@v3 + publish-docs: + needs: publish-npm + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 - # - name: Setup Node - # uses: actions/setup-node@v3 - # with: - # node-version: 16 - # - name: Install Deps - # run: npm ci - # - name: Build Docs - # env: - # VITE_GOOGLE_CLIENT_ID: ${{ secrets.VITE_GOOGLE_CLIENT_ID }} - # run: npm run docs:build + - name: Setup Node + uses: actions/setup-node@v3 + with: + node-version: 16 + - name: Install Deps + run: npm ci + - name: Build Docs + env: + VITE_GOOGLE_CLIENT_ID: ${{ secrets.VITE_GOOGLE_CLIENT_ID }} + run: npm run docs:build - # # Deploy to Netlify using our production secrets - # - name: Deploy to netlify - # uses: netlify/actions/cli@master - # env: - # NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} - # NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} - # with: - # args: deploy --dir=docs/.vitepress/dist --prod - # secrets: '["NETLIFY_AUTH_TOKEN", "NETLIFY_SITE_ID"]' + # Deploy to Netlify using our production secrets + - name: Deploy to netlify + uses: netlify/actions/cli@master + env: + NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} + NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} + with: + args: deploy --dir=docs/.vitepress/dist --prod + secrets: '["NETLIFY_AUTH_TOKEN", "NETLIFY_SITE_ID"]'