diff --git a/.gitea/workflows/merge.yaml b/.gitea/workflows/merge.yaml new file mode 100644 index 0000000..19ef7da --- /dev/null +++ b/.gitea/workflows/merge.yaml @@ -0,0 +1,34 @@ +name: "Main Build Process" + +# Runs on main branch commits, +# every commit in a pull request, any published release. +on: + push: + branches: ["main"] + pull_request: + branches: ["main"] + release: + types: [published] + +jobs: + asciidoc: + name: "generate documentation" + + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Get build container + id: adocbuild + uses: tonynv/asciidoctor-action@master + with: + program: "asciidoctor -D docs --backend=html5 -o index.html documentation/index.adoc" + - name: Print execution time + run: echo "Time ${{ steps.adocbuild.outputs.time }}" + - name: Deploy docs to ghpages + uses: peaceiris/actions-gh-pages@v3 + with: + deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} + publish_branch: gh-pages + publish_dir: ./ \ No newline at end of file diff --git a/README.md b/README.adoc similarity index 100% rename from README.md rename to README.adoc diff --git a/documentation/index.adoc b/documentation/index.adoc new file mode 100644 index 0000000..70c379b --- /dev/null +++ b/documentation/index.adoc @@ -0,0 +1 @@ +Hello world \ No newline at end of file