Giter Club home page Giter Club logo

git-pages-action's Introduction

Deploy Action

This action will handle the deployment process of your project.

Configuration

Key Value Information Type Required
git-hosts This is the hosts you wish to deploy to, for example, github.com or gitee.com. with Yes
repository-name Allows you to specify a different repository path so long as you have permissions to push to it. This should be formatted like so: kisstar/git-pages-action. with Yes
branch This is the branch you wish to deploy to, for example, gh-pages or docs. with Yes
folder The folder in your repository that you want to deploy. with Yes
ssh_private_key A private SSH key stored as a secret. with Yes

Example

jobs:
  deploy:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout Repo
        uses: actions/checkout@v3
      - name: Use Node.js
        uses: actions/setup-node@v3
        with:
          node-version: 16.x
      - name: Install and Build # This example project is built using npm and outputs the result to the 'build' folder.
        run: |
          npm ci
          npm run build

      - name: Set git user information
        run: |
          git config user.name $USER_NAME
          git config user.email $USER_EMAIL
        env:
          USER_NAME: kisstar
          USER_EMAIL: [email protected]

      - name: Deploy with gh-pages for Gitee
        uses: kisstar/git-pages-action@main
        with:
          git-hosts: gitee.com
          repository-name: kisstar/notebook
          branch: gh-pages
          folder: build
          ssh_private_key: ${{ secrets.GITEE_SSH_PRIVATE_KEY }}

License

MIT © kisstar

git-pages-action's People

Contributors

kisstar avatar

Watchers

 avatar

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.