Update .gitea/workflows/publish.yaml

This commit is contained in:
zramsay 2023-12-13 15:16:33 +00:00
parent e69b951d28
commit d723c31cd2

View File

@ -1,28 +1,28 @@
name: Publish ApplicationRecord to Registry name: Publish ApplicationRecord to Registry
on: on:
release: release:
types: [published] types: [published]
jobs: jobs:
cns_publish: cns_publish:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: "Clone project repository" - name: "Clone project repository"
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Use Node.js - name: Use Node.js
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: 18 node-version: 18
- name: "Install Yarn" - name: "Install Yarn"
run: npm install -g yarn run: npm install -g yarn
- name: "Install registry CLI" - name: "Install registry CLI"
run: | run: |
npm config set @cerc-io:registry https://git.vdb.to/api/packages/cerc-io/npm/ npm config set @cerc-io:registry https://git.vdb.to/api/packages/cerc-io/npm/
yarn global add @cerc-io/laconic-registry-cli yarn global add @cerc-io/laconic-registry-cli
- name: "Install jq" - name: "Install jq"
run: apt -y update && apt -y install jq run: apt -y update && apt -y install jq
- name: "Publish Record" - name: "Publish Record"
env: env:
CERC_REGISTRY_USER_KEY: ${{ secrets.CICD_LACONIC_USER_KEY }} CERC_REGISTRY_USER_KEY: ${{ secrets.CICD_LACONIC_USER_KEY }}
CERC_REGISTRY_BOND_ID: ${{ secrets.CICD_LACONIC_BOND_ID }} CERC_REGISTRY_BOND_ID: ${{ secrets.CICD_LACONIC_BOND_ID }}
CERC_REGISTRY_APP_CRN: "crn://cerc-io/applications/test-progressive-web-app" CERC_REGISTRY_APP_CRN: "crn://osmosis/applications/test-progressive-web-app"
run: scripts/publish-app-record.sh run: scripts/publish-app-record.sh