Fix netlify preview actions

This commit is contained in:
Jan Dvorak
2021-10-26 13:55:17 +02:00
parent 0727bcee75
commit bbc829f734
2 changed files with 2 additions and 63 deletions

View File

@@ -30,33 +30,3 @@ jobs:
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_DOCS_SITE_ID }}
deploy-branch:
runs-on: ubuntu-latest
defaults:
run:
working-directory: docs/
if:
contains('
refs/heads/release-
', github.ref)
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 12.x
- name: Build the Docs
run: npm ci && npm run build
- name: Deploy to Netlify for preview
uses: nwtgck/actions-netlify@v1.2.2
with:
publish-dir: './docs/public'
production-branch: devel
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: Deploy from GitHub Actions ${{ github.event.pull_request.title }}
netlify-config-path: './docs/netlify.toml'
alias: ${{ github.head_ref }}
enable-pull-request-comment: false
enable-commit-comment: false
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_DOCS_SITE_ID }}

View File

@@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
defaults:
run:
working-directory: guide/site/
working-directory: guide/
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
@@ -19,7 +19,7 @@ jobs:
- name: Deploy to Netlify for preview
uses: nwtgck/actions-netlify@v1.2.2
with:
publish-dir: './guide/site/public'
publish-dir: './guide/public'
production-branch: devel
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: Deploy from GitHub Actions ${{ github.event.pull_request.title }}
@@ -30,34 +30,3 @@ jobs:
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_GUIDE_SITE_ID }}
deploy-branch:
runs-on: ubuntu-latest
defaults:
run:
working-directory: guide/site/
if:
contains('
refs/heads/release-
', github.ref)
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Build the Guide
run: npm ci && npm run build
- name: Deploy to Netlify for preview
uses: nwtgck/actions-netlify@v1.2.2
with:
publish-dir: './guide/site/public'
production-branch: devel
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: Deploy from GitHub Actions ${{ github.event.pull_request.title }}
netlify-config-path: './guide/netlify.toml'
alias: ${{ github.head_ref }}
enable-pull-request-comment: false
enable-commit-comment: false
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_GUIDE_SITE_ID }}