mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Fix netlify preview actions
This commit is contained in:
30
.github/workflows/docs.yml
vendored
30
.github/workflows/docs.yml
vendored
@@ -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 }}
|
||||
|
||||
35
.github/workflows/guide.yml
vendored
35
.github/workflows/guide.yml
vendored
@@ -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 }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user