Skip to content

Commit

Permalink
ci: run action hotfix branch
Browse files Browse the repository at this point in the history
  • Loading branch information
amondnet committed Aug 22, 2020
1 parent 55bb967 commit 9846cb3
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/example-static-19.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: example - static
on:
push:
branches:
- master
- feature/*
- hotfix/*
pull_request:
branches:
- master

jobs:
static:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: amondnet/vercel-action@v19
id: now-deployment-staging
if: github.event_name == 'pull_request'
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID_STATIC }}
working-directory: example/static
alias-domains: |
staging.static.vercel-action.amond.dev
pr-{{PR_NUMBER}}.static.vercel-action.amond.dev
- name: production or not
id: prod_or_not
run: |
if [$REF == 'refs/heads/master']
then
echo "::set-output name=vercel-args::--prod"
else
echo "::set-output name=vercel-args::"
fi
env:
REF: ${{ github.ref }}
- uses: ./
id: now-deployment-production
if: github.event_name == 'push'
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID_STATIC }}
vercel-args: ${{ steps.prod_or_not.outputs.vercel-args }}
working-directory: example/static
alias-domains: |
{{BRANCH}}.static.vercel-action.amond.dev

1 comment on commit 9846cb3

@github-actions
Copy link

@github-actions github-actions bot commented on 9846cb3 Aug 22, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for zeit-now-deployment-action-example-static ready!

✅ Preview
https://zeit-now-deployment-action-example-static-5flf2db8f.vercel.app
https://hotfix-gh-30.static.vercel-action.amond.dev

Built with commit 9846cb3.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.