Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

deploy-website

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deploy-website

Deploy your static website to AWS S3 or GitHub Pages.

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
Maintainers
1
Weekly downloads
 
Created
Source

Deploy Website

Deploy your static website to AWS S3 or GitHub Pages.

Github Workflow

Deploy to GitHub Pages

Deploy /dist to the gh-pages brach.

- name: Deploy to gh-pages
  run: |
    git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
    npx deploy-website gh dist
  env:
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Deploy to AWS S3

Deploy /dist to your s3 bucket.

DISTRIBUTION_ID is optional. If you want to invalidate cloudfront use:
npx deploy-website aws dist true.

- name: Deploy to S3
  run: |
    npx deploy-website aws dist
  env:
    BUCKET: ${{ secrets.BUCKET }}
    AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
    AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
    DISTRIBUTION_ID: ${{ secrets.DISTRIBUTION_ID }}

FAQs

Package last updated on 05 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc