8000 GitHub - sandwichfarm/nsite-action: A github action that deploys nsites to nostr and blossom (using nsyte)
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

sandwichfarm/nsite-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nsite-action

GitHub release (latest by date) GitHub Actions CI

Deploy static websites to Blossom/Nostr using nsyte.

Quick Start

  1. Setup nsyte locally (one-time):

    nsyte ci
  2. Add GitHub Secret:

    • Add the nbunksec string as a repository secret named NBUNKSEC
  3. Add to workflow:

    - name: Deploy to Nostr/Blossom
      uses: your-username/nsite-action@v1
      with:
        nbunksec: ${{ secrets.NBUNKSEC }}
        directory: './dist'  # Your built website directory
        relays: |
          wss://relay.damus.io
          wss://relay.snort.social
        servers: |
          wss://some.blossom.server.com

Inputs

Input Required Default Description
nbunksec Yes - Bunker auth string (store as GitHub Secret)
directory Yes - Directory containing website files
relays Yes - Newline separated relay URIs
servers Yes - Newline separated server URIs
nsyte_version No latest Version tag (e.g., "v0.5.0")
force No false Re-upload all files
purge No false Delete remote files not present locally
verbose No false Show detailed output
concurrency No 4 Number of parallel uploads
fallback No '' Fallback HTML path (e.g., "/index.html")

Outputs

Output Description
status Upload status (success or failure)
nsyte_version_used Version of nsyte used

Features

  • Downloads nsyte binary automatically
  • Supports Linux, macOS, and Windows
  • Masks sensitive secrets in logs
  • Authenticates via NIP-46 bunker

Security Notes

  • Store nbunksec as a GitHub Secret
  • Configure bunker with minimal permissions
  • Consider pinning to specific nsyte_version
  • Rotate nbunksec periodically

Development

See test.yml for testing. Run make test-local for local testing.

License

MIT License

About

A github action that deploys nsites to nostr and blossom (using nsyte)

Resources

License

Stars

Watchers

Forks

Packages

No packages published
0