Skip to content

GitHub Action to generate websites with Couscous

License

Notifications You must be signed in to change notification settings

CouscousPHP/GitHub-Action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Couscous - Github Action

release license

Couscous Artefact Couscous GithubPage

Couscous turns Markdown documentation into websites. http://couscous.io/

This is a GitHub Action to generate couscous websites. View : https://couscousphp.github.io/GitHub-Action/

Getting started

Add your workflow file, the following step

  - uses: CouscousPHP/GitHub-Action@v1

Examples

Publish on GithubPage

name: Couscous GithubPage

on:
  push:
    branches:
      - master

jobs:
  deploy:
    runs-on: ubuntu-18.04
    steps:
      - uses: actions/checkout@v1

      - uses: CouscousPHP/GitHub-Action@v1
      - name: Deploy
        uses: peaceiris/actions-gh-pages@v3
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          publish_dir: ./.couscous/generated

Artefact zip

Generate zip artefact with the generate website.

name: Couscous Artefact

on:
  push:
    branches:
      - master

jobs:
  deploy:
    runs-on: ubuntu-18.04
    steps:
      - uses: actions/checkout@v1

      - uses: CouscousPHP/GitHub-Action@v1

      - name: Upload artifact
        uses: actions/[email protected]
        with:
          # Artifact name
          name: Couscous
          # Directory containing files to upload
          path: .couscous/generated

License

Couscous is released under the MIT License.