repositories
loading repo index
repositories
loading repo index
repository
loading code, commits, and activity
Mirrored from https://github.com/ProjectOpenSea/opensea-skill
stars
latest
clone command
git clone gitlawb://did:key:z6MkqRzA...RfoM/ProjectOpenSea-...git clone gitlawb://did:key:z6MkqRzA.../ProjectOpenSea-...fef93001Release v2.14.011h ago| #1 | name: Publish to ClawHub |
| #2 | |
| #3 | # Auto-publishes new versions of opensea/opensea-marketplace on every |
| #4 | # release event in this (synced) public repo. |
| #5 | |
| #6 | on: |
| #7 | release: |
| #8 | types: [published] |
| #9 | workflow_dispatch: |
| #10 | inputs: |
| #11 | version: |
| #12 | description: "Version to publish (semver, no leading v)" |
| #13 | required: true |
| #14 | |
| #15 | jobs: |
| #16 | publish: |
| #17 | runs-on: ubuntu-latest |
| #18 | steps: |
| #19 | - uses: actions/checkout@v6 |
| #20 | with: |
| #21 | ref: ${{ github.event.release.tag_name || github.ref }} |
| #22 | |
| #23 | - uses: actions/setup-node@v6 |
| #24 | with: |
| #25 | node-version: 24 |
| #26 | |
| #27 | - name: Install ClawHub CLI |
| #28 | run: npm install -g clawhub@0.12.3 |
| #29 | |
| #30 | - name: Write ClawHub config |
| #31 | env: |
| #32 | CLAWHUB_TOKEN: ${{ secrets.CLAWHUB_TOKEN }} |
| #33 | run: | |
| #34 | if [ -z "$CLAWHUB_TOKEN" ]; then |
| #35 | echo "CLAWHUB_TOKEN secret is not set" >&2 |
| #36 | exit 1 |
| #37 | fi |
| #38 | jq -n --arg token "$CLAWHUB_TOKEN" \ |
| #39 | '{registry: "https://clawhub.ai", token: $token}' \ |
| #40 | > "$RUNNER_TEMP/clawhub-config.json" |
| #41 | |
| #42 | - name: Publish skill |
| #43 | env: |
| #44 | CLAWHUB_CONFIG_PATH: ${{ runner.temp }}/clawhub-config.json |
| #45 | EVENT_NAME: ${{ github.event_name }} |
| #46 | INPUT_VERSION: ${{ inputs.version }} |
| #47 | run: | |
| #48 | if [ "$EVENT_NAME" = "release" ]; then |
| #49 | VERSION="${GITHUB_REF_NAME#v}" |
| #50 | else |
| #51 | VERSION="$INPUT_VERSION" |
| #52 | fi |
| #53 | echo "Publishing opensea/opensea-marketplace@${VERSION}" |
| #54 | clawhub publish . \ |
| #55 | --slug opensea-marketplace \ |
| #56 | --owner opensea \ |
| #57 | --version "$VERSION" |
| #58 |