Skip to content

Instantly share code, notes, and snippets.

@MkhytarMkhoian
Last active February 22, 2024 09:35
Show Gist options
  • Save MkhytarMkhoian/68d9bf2cce79097df83948eb42de173e to your computer and use it in GitHub Desktop.
Save MkhytarMkhoian/68d9bf2cce79097df83948eb42de173e to your computer and use it in GitHub Desktop.
name: Docs
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
on:
workflow_dispatch:
push:
branches:
- master
permissions:
contents: read
packages: write
pages: write
id-token: write
jobs:
Deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Job set up
uses: ./.github/actions/job-set-up
- uses: actions/setup-python@v5
- name: Generate Docs
run: ./.github/workflows/generate_docs.sh
- name: Upload documentation zip archive
uses: actions/upload-artifact@v4
with:
name: moove-android-docs
path: android-docs/html
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: './android-docs/html'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment