Skip to content

Commit

Permalink
fix netlify deploy branch
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria committed Aug 28, 2023
1 parent 2254146 commit 9f1a349
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions .github/workflows/netlify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: Automatic Deploy
on:
push:
branches:
- master
- main

workflow_dispatch: {}

jobs:
Expand All @@ -20,29 +20,29 @@ jobs:
node-version: [18.10.x]

steps:
- uses: actions/checkout@v2

- run: git fetch --prune --unshallow --tags

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- run: npm run install:client

- run: cd client && npm run build:netlify

- name: Deploy to Netlify
uses: nwtgck/[email protected]
with:
publish-dir: './client/www'
production-branch: master
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: "Deploy from GitHub Actions"
enable-pull-request-comment: false
enable-commit-comment: false
overwrites-pull-request-comment: true
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
- uses: actions/checkout@v2

- run: git fetch --prune --unshallow --tags

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- run: npm run install:client

- run: cd client && npm run build:netlify

- name: Deploy to Netlify
uses: nwtgck/[email protected]
with:
publish-dir: './client/www'
production-branch: master
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: 'Deploy from GitHub Actions'
enable-pull-request-comment: false
enable-commit-comment: false
overwrites-pull-request-comment: true
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}

0 comments on commit 9f1a349

Please sign in to comment.