Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Feb 9, 2021. It is now read-only.

ponylang/main-actor-documentation-action

Open more actions menu

Repository files navigation

main-actor-documentation-action

A GitHub Action that generates documentation for a Pony library and updates that documentation to main.actor. The library in question must have a Makefile with a target docs that can be used to generate the documentation.

Example workflow

In release.yaml, in addition the usual release-bot-action workflow entries.

name: Release

on:
  push:
    tags:
      - \d+.\d+.\d+

jobs:
  generate-documentation:
    name: Generate documentation for release
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1
      - name: Generate documentation and upload
        uses: ponylang/main-actor-documentation-action@0.1.0
        with:
          library_name: "MYLIBRARY"
          docs_build_dir: "build/MY-LIBRARY-docs"
          git_user_name: "Ponylang Main Bot"
          git_user_email: "ponylang.main@gmail.com"
        env:
          RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }}

N.B. The environment variable RELEASE_TOKEN that is required by each step must be a personal access token with at least public_repo access. You can not use the GITHUB_TOKEN environment variable provided by GitHub's action environment. If you try to use GITHUB_TOKEN, the action will fail.

Additional setup

Any user or organization that intends to use this action must have set up a fork of the ponylang/main.actor-package-markdown repository.

So for example, if your GitHub user name is JeannieQPublic, then there needs to be a fork of main.actor-package-markdown at JeannieQPublic/main.actor-package-markdown.

The personal access token user in the workflow configuration as RELEASE_TOKEN must have at least public_repo access to the main.actor-package-markdown fork.

About

🐴 Generates documentation for the release and uploads to https://main.actor

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Contributors 2

  •  
  •  
Morty Proxy This is a proxified and sanitized view of the page, visit original site.