Skip to content
This repository has been archived by the owner on Dec 21, 2024. It is now read-only.

feat: upload meta to releases #380

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/opengb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,39 @@ jobs:
VERBOSE: true
run: cd opengb && deno task test:registry

- name: Upload Meta
uses: actions/upload-artifact@v4
with:
name: meta
path: opengb-modules/tests/basic/.opengb/meta.json

upload-meta:
runs-on: ubuntu-20.04
needs: [test-core, test-project, test-modules]
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install Deno
uses: denoland/setup-deno@v1
with:
deno-version: "1.44.1"

- name: Read registry ref from JSON
id: read-ref
run: echo "OPENGB_MODULES_REF=$(jq -r '.' opengb/src/project/registry_default_rev.json)" >> $GITHUB_ENV

- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: meta

- name: Configure AWS
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.CF_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.CF_SECRET_ACCESS_KEY }}
aws-region: auto

- name: Upload Meta
run: aws s3api put-object --bucket opengb-meta --key backend/${OPENGB_MODULES_REF}/index.json --body meta.json
Loading