Skip to content

Build and deploy to Kuroco front #80

Build and deploy to Kuroco front

Build and deploy to Kuroco front #80

Workflow file for this run

name: Build and Deploy
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '16.x'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Generate
run: npm run generate
- name: Archive Production Artifact
uses: actions/upload-artifact@v2
with:
name: ${{ github.sha }}-${{ github.run_id }}
path: dist
retention-days: 7
- name: Webhook
uses: distributhor/workflow-webhook@v1
env:
webhook_url: "https://dev-nuxt-auth.a.kuroco.app/direct/menu/github/"
webhook_secret: "79a0dac07eb8af664820afa615e28575"
data: '{"domain":"dev-nuxt-auth.g.kuroco-front.app", "repository":"${{ github.repository }}", "run_id":"${{ github.run_id }}", "hash":"${{ github.sha }}"}'