Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I deploy with an assigned domain? #30

Closed
jackguoAtJogg opened this issue Feb 20, 2020 · 1 comment
Closed

How can I deploy with an assigned domain? #30

jackguoAtJogg opened this issue Feb 20, 2020 · 1 comment
Labels
Type: Question Further information is requested

Comments

@jackguoAtJogg
Copy link

I wonder how can I deploy with an assigned domain so it deploys to the same location every time this github action runs.

@amondnet
Copy link
Owner

amondnet commented Feb 20, 2020

use prod.
The --prod option can be used to create a deployment for a production domain specified in the project dashboard.

Usage Example:

name: deploy production website
on: [push]
jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: amondnet/now-deployment@v2
        with:
          zeit-token: ${{ secrets.ZEIT_TOKEN }} # Required
          github-token: ${{ secrets.GITHUB_TOKEN }} #Optional 
          zeit-team-id: team_XXXXXXXXXXX #Optional 
          now-args: '--prod' #Optional
          now-org-id: 'example_org_id' #Required
          now-project-id: 'example_project_id' #Required 
          working-directory: ./sub-directory #Optional

@amondnet amondnet added the Type: Question Further information is requested label Feb 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants