From 7f7623c052edca3b74a40201071826fc6f7d3eeb Mon Sep 17 00:00:00 2001 From: "jean-philippe.bazonnais" Date: Fri, 5 Apr 2024 17:35:56 +0200 Subject: [PATCH] test deploy netflify --- .github/workflows/netlify.yml | 37 +++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/netlify.yml diff --git a/.github/workflows/netlify.yml b/.github/workflows/netlify.yml new file mode 100644 index 0000000..fdd30d4 --- /dev/null +++ b/.github/workflows/netlify.yml @@ -0,0 +1,37 @@ +name: Build and Deploy to Netlify +on: + pull_request: + branches: + - develop + push: + branches: + - develop +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Use nodejs + uses: actions/setup-node@v3 + with: + node-version: '20.x' + + - name: Install dependencies + run: npm install + + - name: Build + run: npm run build -- --mode=development + + - name: Deploy to Netlify + uses: nwtgck/actions-netlify@v3 + with: + publish-dir: './dist' + github-token: ${{ secrets.GITHUB_TOKEN }} + deploy-message: "Deploy from GitHub Actions Netlify" + enable-github-deployment: false + env: + NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} + NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} + timeout-minutes: 1 \ No newline at end of file