Skip to content

Commit

Permalink
docfx build action
Browse files Browse the repository at this point in the history
  • Loading branch information
Panda-Sharp committed Sep 11, 2019
1 parent 6ca9f3f commit 5fe01d4
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 52 deletions.
14 changes: 14 additions & 0 deletions .github/actions/docfx-build/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM ubuntu:18.04

# LABEL "com.github.actions.name"="DocFX - Build and publish documentation"
# LABEL "com.github.actions.description"="Builds and publishes documentation to GitHub Pages."
# LABEL "com.github.actions.icon"="code"
# LABEL "com.github.actions.color"="red"

# LABEL "repository"="https://github.com/emiliano84/Toolkit.Docs"
# LABEL "homepage"="https://emiliano84.github.io/Toolkit.Docs/"
# LABEL "maintainer"="Emil <[email protected]>"

ADD entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
5 changes: 5 additions & 0 deletions .github/actions/docfx-build/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
name: 'Docfx Build Action'
description: 'Build Docs With DocFx'
runs:
using: 'docker'
image: 'Dockerfile'
File renamed without changes.
14 changes: 0 additions & 14 deletions .github/actions/docfx/Dockerfile

This file was deleted.

14 changes: 0 additions & 14 deletions .github/actions/docfx/action.yml

This file was deleted.

47 changes: 23 additions & 24 deletions .github/workflows/docfx.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,45 @@
name: DocFx
name: DocFx Clone And Build
# This workflow is triggered on push to the repository.
on: [push]

jobs:
build:
# Job name is DocFx
name: Clone Repos
# This job runs on Linux
runs-on: ubuntu-latest
steps:
# Checkout
- uses: actions/checkout@v1
# with:
# path: 'ToolkitDocs'
- uses: actions/checkout@v1

# Clone
- name: Clone
run: git clone https://emiliano84:${{secrets.GITHUB_TOKEN}}@github.com/emiliano84/Toolkit.git ../Toolkit

# Hello
- name: Hello
- name: Echo
run: echo ${HOME} ${GITHUB_ACTOR} ${GITHUB_REPOSITORY} ${GITHUB_WORKSPACE} ${GITHUB_SHA}
# ${{secrets.TOKEN}} ${{secrets.GITHUB_TOKEN}}

# Ls
- name: Ls
run: ls

# Ls ToolkitDocs
- name: Ls /home/runner/work/Toolkit.Docs
run: ls /home/runner/work/Toolkit.Docs
run: ls /home/runner/work/Toolkit.Docs

hello_world_job:
docfx_build:
runs-on: ubuntu-latest
name: A job to say hello
name: Docfx Build
steps:
# - uses: ./ # Uses an action in the root directory
- name: Hello world action step
id: hello
uses: emiliano84/Toolkit.Docs/.github/actions/hello-world@master
with:
who-to-greet: 'Mona the Octocat'
# Use the output from the `hello` step
- name: Get the output time
run: echo "The time was ${{ steps.hello.outputs.time }}"
- name: Docfx Build Step
id: docfx_build
uses: emiliano84/Toolkit.Docs/.github/actions/docfx-build@master

# hello_world_job:
# runs-on: ubuntu-latest
# name: A job to say hello
# steps:
# # - uses: ./ # Uses an action in the root directory
# - name: Hello world action step
# id: hello
# uses: emiliano84/Toolkit.Docs/.github/actions/hello-world@master
# with:
# who-to-greet: 'Mona the Octocat'
# # Use the output from the `hello` step
# - name: Get the output time
# run: echo "The time was ${{ steps.hello.outputs.time }}"

0 comments on commit 5fe01d4

Please sign in to comment.