Skip to content

Commit

Permalink
feat: cleanup and run on push/PRs
Browse files Browse the repository at this point in the history
gomesalexandre committed Jan 8, 2024
1 parent 36b3066 commit 9facce7
Showing 1 changed file with 5 additions and 22 deletions.
27 changes: 5 additions & 22 deletions .github/workflows/vercel.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
name: Vercel Deployment

on:
workflow_dispatch:
push:
branches:
- main
inputs:
environment:
type: choice
description: 'Environment'
options:
- preview
- production
- master
pull_request:
branches:
- master

concurrency:
# don't allow multiple deployments at once
@@ -44,19 +40,6 @@ jobs:
node_modules
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}

create_deploy_request:
if: ${{ github.event.inputs.environment == 'preview' }}
needs: [setup]
name: Create Deploy Request
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
# this can probably be removed later
- name: Set short SHA
id: vars
run: |
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
deploy-preview:
if: ${{ github.event.inputs.environment == 'preview' }}
name: Deploy Preview

0 comments on commit 9facce7

Please sign in to comment.