Skip to content
play

GitHub Action

Nanos Store Action

v2.0 Latest version

Nanos Store Action

play

Nanos Store Action

Automatically push updates to nanos world Store

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Nanos Store Action

uses: nanos-world/nanos-store-action@v2.0

Learn more about this action in nanos-world/nanos-store-action

Choose a version

nanos-store-action

Usage

name: EGUI publish to store.nanos.world

on:
  release:
    types: [published]
  workflow_dispatch:

jobs:
  build:
    runs-on: ubuntu-latest
    name: Publish package
    steps:
      - uses: actions/checkout@v2
      - name: Nanos Store Action
        uses: nanos-world/nanos-store-action@v2.0
        env:
          GITHUB_TOKEN: ${{ github.token }}
        with:
          # folder which contains the asset/package - if it's on root, leave it blank
          folder: ''
          # name of the asset/package
          name: 'name-of-the-package-or-asset'
          # API token - generate at https://store.nanos.world/settings/tokens/ and set under Settings -> Secrets -> Actions with name STORE_SECRET
          token: ${{ secrets.STORE_SECRET }}

The secret can be obtained at: https://store.nanos.world/settings/tokens/

Do not put the secret direclty into the Github Action workflow. Put the token under Settings -> Secrets -> Actions and create a new secret with the name STORE_SECRET.

Contributing

https://docs.github.com/en/actions/creating-actions/creating-a-javascript-action#commit-tag-and-push-your-action-to-github

npm i -g @vercel/ncc
ncc build index.js --license licenses.txt