mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-05-20 16:23:40 +00:00
35 lines
951 B
YAML
35 lines
951 B
YAML
name: Publish records
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
workflow_dispatch:
|
|
name: 'Publish records'
|
|
|
|
jobs:
|
|
publish:
|
|
if: github.repository == 'is-a-dev/register'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: borales/actions-yarn@v2.0.0
|
|
with:
|
|
cmd: install --ignore-engines
|
|
- name: Running tests
|
|
uses: borales/actions-yarn@v2.0.0
|
|
with:
|
|
cmd: test
|
|
- name: Publishing records
|
|
env:
|
|
CI: 1
|
|
ENV: production
|
|
DOMAIN_USER: ${{ secrets.DOMAIN_USER }}
|
|
DOMAIN_API_KEY: ${{ secrets.DOMAIN_API_KEY }}
|
|
DOMAIN_API_HOST: ${{ secrets.DOMAIN_API_HOST }}
|
|
DOMAIN_API_PORT: ${{ secrets.DOMAIN_API_PORT }}
|
|
DOMAIN_DOMAIN: ${{ secrets.DOMAIN_DOMAIN }}
|
|
DOMAIN_HOST_IP: ${{ secrets.DOMAIN_HOST_IP }}
|
|
uses: borales/actions-yarn@v2.0.0
|
|
with:
|
|
cmd: publish-records
|