0.0.6 • Published 2 years ago

deploy-website v0.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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 }}

Your workflow probably also needs some additional permission.
https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs

permissions:
  contents: write

Deploy to AWS S3

Deploy /dist to your s3 bucket.

BUCKET is the bucket name:
could be deploy-website-test-bucket
or with a subfolder deploy-website-test-bucket/www.

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 }}
0.0.6

2 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.1

4 years ago

0.0.0

4 years ago