From 94b9e2e4ee1ab2721692e77eaa3a7cc32e51bd43 Mon Sep 17 00:00:00 2001 From: Neil Brommer Date: Tue, 11 Jul 2023 11:25:00 -0700 Subject: [PATCH] Create netlify-deploy.yml --- .github/workflows/netlify-deploy.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/netlify-deploy.yml diff --git a/.github/workflows/netlify-deploy.yml b/.github/workflows/netlify-deploy.yml new file mode 100644 index 0000000..72790cf --- /dev/null +++ b/.github/workflows/netlify-deploy.yml @@ -0,0 +1,25 @@ +name: "Deploy To Netlify" + +on: + workflow_dispatch: + push: + tags: + - "*" + branches: + - "main" + +jobs: + deploy: + runs-on: ubuntu-latest + name: "Deploy To Netlify" + steps: + - uses: actions/checkout@v2 + - uses: jsmrcaga/action-netlify-deploy@v2.0.0 + with: + NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} + NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} + NETLIFY_DEPLOY_MESSAGE: "Prod deploy to v${{ github.ref }}" + NETLIFY_DEPLOY_TO_PROD: true + install_command: npm install + build command: npm run build + build_directory: "_site"