Skip to content

Instantly share code, notes, and snippets.

@brunosabot
Created August 29, 2019 20:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brunosabot/e1b8f12917df3c95a700a30d3a061b28 to your computer and use it in GitHub Desktop.
Save brunosabot/e1b8f12917df3c95a700a30d3a061b28 to your computer and use it in GitHub Desktop.
name: Deploy to Now
on: [push]
jobs:
filteroutmaster:
name: Filter out master branch
runs-on: ubuntu-latest
needs: [deploy]
steps:
- name: Filter out master branch
uses: actions/bin/filter@master
with:
args: "branch master"
publish:
name: Publish to prod
runs-on: ubuntu-latest
needs: [filteroutmaster]
steps:
- name: Checkout the repository
uses: actions/checkout@v1
- name: Deploy on Zeit - Prod
uses: actions/zeit-now@master
env:
ZEIT_TOKEN: ${{ secrets.ZEIT_TOKEN }}
with:
args: --prod
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v1
- name: Deploy on Zeit
uses: actions/zeit-now@master
env:
ZEIT_TOKEN: ${{ secrets.ZEIT_TOKEN }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment