Giter Site home page Giter Site logo

awibox / deploy-to-github-pages-action Goto Github PK

View Code? Open in Web Editor NEW
13.0 3.0 1.0 28 KB

:rocket: GitHub action that will help deploy your app to the repository for GitHub Pages

License: MIT License

Dockerfile 31.15% Shell 68.85%
deployment github-pages frontend github-action

deploy-to-github-pages-action's Introduction

Deploy to GitHub pages

You can use GitHub Pages like hosting for your project. To do this, you need to create a repository and activate GitHub Pages for the master branch and bind your domain. Then use this action to help you set up automatic deployment from your app to your repository for GitHub Pages.

Getting started

Create a deploy.yml file in the workflows directory. You can use the example below:

name: Deploy to GitHub Pages
on:
  push:
    branches:
      - master
jobs:
  deploy:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        node-version: [14.2.0]
    steps:
      - uses: actions/checkout@v3
      - name: install, build, and test
        run: |
          yarn install
          yarn lint
          yarn build
          yarn test
        env:
          CI: true
      - name: Deploy to production
        uses: awibox/deploy-to-github-pages-action@master
        env:
          AUTHOR: awibox
          BUILD_PATH: public
          GITHUB_PAGE_NAME: awibox.github.io
          PA_TOKEN: ${{ secrets.PA_TOKEN }}
          USERNAME: awibox
          EMAIL: [email protected]

Example repositories using this action

Environment variables

Environment variable Required Description Example
AUTHOR Required Name of the repository owner awibox
BUILD_PATH Required The directory where the static is built public
GITHUB_PAGE_NAME Required Name of the repository for GitHub Pages where the application will be collected awibox.github.io
PA_TOKEN Required GitHub Private Access Token with editing rights for repo. You can create it using GitHub Documentation ${{secrets.PA_TOKEN}}
USERNAME Optional The GitHub username for commits. awibox
EMAIL Optional The email that is used for commits. [email protected]

deploy-to-github-pages-action's People

Contributors

awibox avatar panquesito7 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

panquesito7

deploy-to-github-pages-action's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.