Skip to content

Commit

Permalink
Revert GHA to combine preview/deploy (#173)
Browse files Browse the repository at this point in the history
Signed-off-by: Byron Ruth <[email protected]>
  • Loading branch information
bruth authored Nov 28, 2023
1 parent 78bbf96 commit c2ec2f1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 66 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
name: deploy
on:
push:
branches:
- main
on: [push]

jobs:
run:
Expand All @@ -18,6 +15,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}

- name: Setup Python
uses: actions/setup-python@v4
Expand Down Expand Up @@ -49,6 +48,7 @@ jobs:
- name: Auto-commit generated recordings
uses: stefanzweifel/git-auto-commit-action@v5
if: ${{ github.ref_name == 'main' }}
with:
commit_message: Auto-commit recording
file_pattern: examples/**/output.txt examples/**/output.cast
Expand All @@ -57,12 +57,24 @@ jobs:
run: |
nbe build
- name: Vercel preview deploy
uses: amondnet/vercel-action@v25
if: ${{ github.ref_name != 'main' }}
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 }}
scope: ${{ secrets.VERCEL_TEAM_SCOPE }}
working-directory: ./html

- name: Vercel production deploy
uses: amondnet/vercel-action@v25
if: ${{ github.ref_name == 'main' }}
with:
vercel-args: "--prod"
vercel-token: ${{ secrets.VERCEL_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
scope: ${{ secrets.VERCEL_TEAM_SCOPE }}
Expand Down
61 changes: 0 additions & 61 deletions .github/workflows/preview.yaml

This file was deleted.

1 comment on commit c2ec2f1

@github-actions
Copy link

Choose a reason for hiding this comment

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

Deploy preview for nats-by-example ready!

✅ Preview
https://nats-by-example-7rpeiutkx-connecteverything.vercel.app

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

Please sign in to comment.