icns-frontend/.github/workflows/publish-to-registry.yml

35 lines
995 B
YAML
Raw Normal View History

2024-03-07 19:22:18 +00:00
name: Publish ApplicationRecord to Registry
on:
release:
types: [published]
push:
branches:
- publish-to-registry
env:
CERC_REGISTRY_USER_KEY: ${{ secrets.CICD_LACONIC_USER_KEY }}
CERC_REGISTRY_BOND_ID: ${{ secrets.CICD_LACONIC_BOND_ID }}
jobs:
cns_publish:
runs-on: ubuntu-latest
steps:
- name: "Clone project repository"
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18
2024-03-08 02:37:27 +00:00
- name: "Enable Yarn"
run: corepack enable
2024-03-07 19:22:18 +00:00
- name: "Install registry CLI"
run: |
npm config set @cerc-io:registry https://git.vdb.to/api/packages/cerc-io/npm/
2024-03-08 02:37:27 +00:00
npm install -g @cerc-io/laconic-registry-cli
2024-03-07 19:22:18 +00:00
- name: "Install jq"
run: apt -y update && apt -y install jq
- name: "Publish Application Record"
run: scripts/publish-app-record.sh
- name: "Request Deployment"
run: scripts/request-app-deployment.sh