2021-09-09 15:38:29 +02:00
|
|
|
name: 'Deploy to Netlify (dev)'
|
2021-09-01 17:31:24 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- dev
|
|
|
|
|
|
|
|
jobs:
|
2022-03-23 15:10:39 +01:00
|
|
|
deploy-to-netlify:
|
2021-09-01 17:31:24 +02:00
|
|
|
name: 'Deploy'
|
|
|
|
runs-on: ubuntu-latest
|
2022-05-26 16:47:41 +02:00
|
|
|
permissions:
|
|
|
|
contents: read
|
2022-03-30 10:12:52 +02:00
|
|
|
steps:
|
2022-03-23 15:10:39 +01:00
|
|
|
- name: Checkout repository
|
2022-04-26 13:53:22 +02:00
|
|
|
uses: actions/checkout@v3.0.2
|
2022-06-14 16:25:48 +02:00
|
|
|
- name: Setup node
|
2022-07-16 13:41:48 +02:00
|
|
|
uses: actions/setup-node@v3.4.1
|
2022-06-14 16:25:48 +02:00
|
|
|
with:
|
|
|
|
node-version: 17.9.0
|
2022-03-23 15:10:39 +01:00
|
|
|
- name: Build and deploy to Netlify
|
2022-06-14 16:49:46 +02:00
|
|
|
uses: jsmrcaga/action-netlify-deploy@53de32e559b0b3833615b9788c7a090cd2fddb03
|
2021-09-01 17:31:24 +02:00
|
|
|
with:
|
2022-01-31 05:29:36 +01:00
|
|
|
install_command: "npm ci"
|
2021-09-01 17:31:24 +02:00
|
|
|
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
|
|
|
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE2_ID }}
|
|
|
|
BUILD_DIRECTORY: "dist"
|
|
|
|
NETLIFY_DEPLOY_MESSAGE: "Dev deploy v${{ github.ref }}"
|
2022-03-08 12:12:31 +01:00
|
|
|
NETLIFY_DEPLOY_TO_PROD: true
|