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/[email protected]
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
.
npm i -g @vercel/ncc
ncc build index.js --license licenses.txt