Skip to content

chore: improve test about creative culture #62

chore: improve test about creative culture

chore: improve test about creative culture #62

Workflow file for this run

name: Deploy
on:
push:
branches: [production, staging]
pull_request:
branches: [production, staging]
jobs:
deploy-staging:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/staging'
environment: staging
steps:
- uses: actions/checkout@master
with:
ref: refs/heads/staging
- uses: a7ul/tar-action@v1.1.0
with:
command: c
cwd: ./
files: ./
outPath: deploy.tar
- name: Deploy WebServer to Caprover
if: ${{ github.ref == 'refs/heads/staging' }}
uses: caprover/deploy-from-github@v1.0.1
with:
server: '${{ secrets.CAPROVER_SERVER }}'
app: '${{ secrets.APP_NAME }}'
token: '${{ secrets.APP_TOKEN }}'
deploy-production:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/production'
environment: production
steps:
- uses: actions/checkout@master
with:
ref: refs/heads/production
- uses: a7ul/tar-action@v1.1.0
with:
command: c
cwd: ./
files: ./
outPath: deploy.tar
- name: Deploy WebServer to Caprover
if: ${{ github.ref == 'refs/heads/production' }}
uses: caprover/deploy-from-github@v1.0.1
with:
server: '${{ secrets.CAPROVER_SERVER }}'
app: '${{ secrets.APP_NAME }}'
token: '${{ secrets.APP_TOKEN }}'