feat: dev branch setup
This commit is contained in:
52
.github/workflows/deploy-pr-preview.yml
vendored
Normal file
52
.github/workflows/deploy-pr-preview.yml
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
name: Deploy preview to vercel
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
- dev
|
||||
types:
|
||||
- opened
|
||||
- synchronize
|
||||
- reopened
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
name: Deploy preview
|
||||
if: ${{ github.repository == 'dot013/.www-new' }}
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
deployments: write
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [20]
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Setup pnpm
|
||||
uses: pnpm/action-setup@v3
|
||||
with:
|
||||
version: 8
|
||||
- name: Setup Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
cache: 'pnpm'
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: '1.22.2'
|
||||
- name: Build
|
||||
run: |
|
||||
pnpm install
|
||||
go install github.com/a-h/templ/cmd/templ@latest
|
||||
make build-vercel
|
||||
- name: Deploy
|
||||
uses: BetaHuhn/deploy-to-vercel-action@v1
|
||||
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 }}
|
||||
17
.github/workflows/deploy-preview.yml
vendored
17
.github/workflows/deploy-preview.yml
vendored
@@ -1,17 +1,13 @@
|
||||
name: Deploy preview to vercel
|
||||
name: Deploy to vercel
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
types:
|
||||
- opened
|
||||
- synchronize
|
||||
- reopened
|
||||
- dev
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
name: Deploy preview
|
||||
name: Deploy
|
||||
if: ${{ github.repository == 'dot013/.www-new' }}
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
@@ -33,7 +29,7 @@ jobs:
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
cache: 'pnpm'
|
||||
- name: Setup Go
|
||||
- name: Setup go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: '1.22.2'
|
||||
@@ -49,3 +45,6 @@ jobs:
|
||||
VERCEL_TOKEN: ${{ SECRETS.VERCEL_TOKEN }}
|
||||
VERCEL_ORG_ID: ${{ SECRETS.VERCEL_ORG_ID }}
|
||||
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
|
||||
ALIAS_DOMAIN: |
|
||||
beta.guz.one
|
||||
PRODUCTION: false
|
||||
|
||||
3
.github/workflows/deploy.yml
vendored
3
.github/workflows/deploy.yml
vendored
@@ -45,3 +45,6 @@ jobs:
|
||||
VERCEL_TOKEN: ${{ SECRETS.VERCEL_TOKEN }}
|
||||
VERCEL_ORG_ID: ${{ SECRETS.VERCEL_ORG_ID }}
|
||||
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
|
||||
ALIAS_DOMAIN: |
|
||||
guz.one
|
||||
PRODUCTION: true
|
||||
|
||||
Reference in New Issue
Block a user