diff --git a/.github/workflows/deploy-production.yml b/.github/workflows/deploy-production.yml new file mode 100644 index 00000000..1e8e8d88 --- /dev/null +++ b/.github/workflows/deploy-production.yml @@ -0,0 +1,35 @@ +name: CD - production + +on: + push: + branches: [ docusaurus ] + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 18 + - run: npm ci + - run: npm run build + - name: Upload GitHub Pages artifact + uses: actions/upload-pages-artifact@v3.0.0 + with: + path: build + + deploy: + needs: build + permissions: + pages: write # to deploy to Pages + id-token: write # to verify that the deployment originates from an appropriate source + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 # or specific "vX.X.X" version tag for this action