-
-
Save brunosabot/e1b8f12917df3c95a700a30d3a061b28 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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