Skip to content

Instantly share code, notes, and snippets.

@msurguy
Created August 28, 2019 04:28
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 msurguy/bd036dda5ff44d8d6a4c94070b6e386c to your computer and use it in GitHub Desktop.
Save msurguy/bd036dda5ff44d8d6a4c94070b6e386c to your computer and use it in GitHub Desktop.
zeit/now deploy actions
on: [push]
name: Deploy on Now
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: deploy
uses: actions/zeit-now@master
env:
ZEIT_TOKEN: ${{ secrets.ZEIT_TOKEN }}
with:
args: --public --no-clipboard deploy ./site > $HOME/${{ github.action }}.txt
- name: alias
uses: actions/zeit-now@master
env:
ZEIT_TOKEN: ${{ secrets.ZEIT_TOKEN }}
with:
args: alias `cat $HOME/deploy.txt`
- name: master-branch-filter
uses: actions/bin/filter@master
with:
args: branch master
- name: release
uses: actions/zeit-now@master
env:
ZEIT_TOKEN: ${{ secrets.ZEIT_TOKEN }}
with:
args: alias --local-config=./site/now.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment