Skip to content

Commit 429b12a

Browse files
author
Alex Patterson
committed
add tags
1 parent 40767d7 commit 429b12a

File tree

3 files changed

+80
-65
lines changed

3 files changed

+80
-65
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: dev-frontend-admin-deploy
2+
3+
on:
4+
push:
5+
branches: [ dev ]
6+
paths: 'frontend/admin/**'
7+
workflow_dispatch:
8+
9+
defaults:
10+
run:
11+
working-directory: ./frontend/admin
12+
13+
jobs:
14+
tag:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@master
18+
- name: Bump version and push tag
19+
uses: hennejg/github-tag-action@v4.1.jh1
20+
with:
21+
github_token: ${{ secrets.GITHUB_TOKEN }}
22+
tag_prefix: admin
23+
build:
24+
needs: tag
25+
environment: dev
26+
runs-on: ubuntu-latest
27+
steps:
28+
- name: checkout
29+
uses: actions/checkout@v2
30+
# Deploy
31+
- name: Deploy dev to Vercel
32+
uses: amondnet/vercel-action@v19
33+
id: vercel-action-staging
34+
with:
35+
github-token: ${{ secrets.GITHUB_TOKEN }}
36+
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
37+
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
38+
vercel-token: ${{ secrets.VERCEL_TOKEN }}
39+
vercel-args: '--prod'
40+
working-directory: ./frontend/admin
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: dev-frontend-main-deploy
2+
3+
on:
4+
push:
5+
branches: [ dev ]
6+
paths: 'frontend/main/**'
7+
workflow_dispatch:
8+
9+
defaults:
10+
run:
11+
working-directory: ./frontend/main
12+
13+
jobs:
14+
tag:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@master
18+
- name: Bump version and push tag
19+
uses: hennejg/github-tag-action@v4.1.jh1
20+
with:
21+
github_token: ${{ secrets.GITHUB_TOKEN }}
22+
tag_prefix: main
23+
deploy:
24+
needs: tag
25+
environment: dev
26+
runs-on: ubuntu-latest
27+
steps:
28+
- name: checkout
29+
uses: actions/checkout@v2
30+
# Deploy
31+
- name: Deploy dev to Vercel
32+
uses: amondnet/vercel-action@v19
33+
id: vercel-action-staging
34+
with:
35+
github-token: ${{ secrets.GITHUB_TOKEN }}
36+
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
37+
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
38+
vercel-token: ${{ secrets.VERCEL_TOKEN }}
39+
vercel-args: '--prod'
40+
working-directory: ./frontend/main

.github/workflows/dev-main-build.yml

Lines changed: 0 additions & 65 deletions
This file was deleted.

0 commit comments

Comments
 (0)