pages-deploy/README.md
2024-03-29 17:06:56 -05:00

1.1 KiB

pages-deploy

A drone plugin to deploy to pages.gay. Takes a folder as an input and pushes it to the "pages" branch of your repository. Inspired by codeberg-pages-deploy, but rewritten in bash to not require Go to be setup.

Example usage

on:
  push:
    branches:
      - main

jobs:
  build:
    runs-on: docker
    steps:
      - uses: https://code.forgejo.org/actions/checkout@v3

      - name: Setup Hugo
        uses: https://github.com/peaceiris/actions-hugo.git@v2
        with:
          hugo-version: "latest"
          extended: true

      - name: Build
        run: |
          hugo --minify          

      - name: Deploy
        uses: https://git.gay/gitgay/pages-deploy@v2
        with:
          folder: ./public

Options

parameter description default
folder The folder to deploy
branch The branch to push to pages
clean Whether to make pages branch empty false