Giter Club home page Giter Club logo

jupyter-publish-action's Introduction

๐Ÿ“˜ Create a Remote Jupyter Book Release

Use this action to create a GitHub release for your Jupyter book, quickly making it accessible as a remote Jupyter book in Azure Data Studio.

typescript-action status

๐Ÿš„ Usage Guide

Manual Start from Workflow Form

In its simplest form, this action can be manually triggered in the browser on the Actions tab for a repository.

workflow form with inputs

To setup the workflow for a manual trigger, create a new GitHub Action workflow and replace the workflow with the following:

# This is a basic workflow that is manually triggered
name: Remote Jupyter Book

# Controls when the action will run. Workflow runs when manually triggered using the UI
on:
  workflow_dispatch:
    # Inputs the workflow accepts.
    inputs:
      directory:
        description: 'Jupyter Book to Release (defaults to whole repository)'
        default: '.'
        required: true
      releasename:
        description: 'Release name'
        required: true
      bookname:
        description: 'Book name'
        required: true
      versionnumber:
        description: 'Version number'
        required: true
      languageid:
        description: 'Language id'
        default: 'EN'
        required: true

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
  RemoteBook:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@v2
      - name: Publish book
        uses: dzsquared/[email protected]
        with:
          directory: ${{ github.event.inputs.directory }}
          releasename:  ${{ github.event.inputs.releasename }}
          bookname: ${{ github.event.inputs.bookname }}
          versionnumber: ${{ github.event.inputs.versionnumber }}
          languageid: ${{ github.event.inputs.languageid }}
          githubtoken: ${{ secrets.GITHUB_TOKEN }}

Other Workflows

The action can be used with other triggers, provided that the inputs are obtained or statically set. I'd love to hear how this is used, please feel free to open an issue to share your scenario!

๐Ÿ›  Inputs

directory

This input defaults to ., or the root of the repository. If the folders for the Jupyter book, such as content and _data, are nested within the repository, change this value to their location. Changing this value is not a typical scenario for a repository with a single Jupyter book.

Azure Data Studio fields

Azure Data Studio remote book dialog

  • releasename = Releases
  • bookname = Book
  • versionnumber = Version
  • languageid = Language

githubtoken

This is a token specific to the repository and the action runtime. You do not need to generate a token or do anything but put the value ${{ secrets.GITHUB_TOKEN }}.

๐Ÿงช Sample

There's a live sample of this action at https://github.com/dzsquared/sample-notebooks.

โš– License

This project is licensed under the MIT license.

๐Ÿงฉ Contributing

This is a small project without any technical contribution guidelines. All contributors must abide by the Contributor Covenant Code of Conduct.

โณ Release Notes

v0.1.0

First preview release.

v0.0.1-0.0.23

Testing and developing in the open. It was messy, but it got us here.

jupyter-publish-action's People

Contributors

dzsquared avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

emptymalei

jupyter-publish-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.