From 0467bfd75012133d208a9cbb6a755900f8f2a452 Mon Sep 17 00:00:00 2001 From: Alfi Maulana Date: Sun, 4 Aug 2024 22:33:06 +0700 Subject: [PATCH] ci: refactor deploy documentation workflow --- .../{deploy-documentation.yml => deploy.yml} | 21 +++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-) rename .github/workflows/{deploy-documentation.yml => deploy.yml} (57%) diff --git a/.github/workflows/deploy-documentation.yml b/.github/workflows/deploy.yml similarity index 57% rename from .github/workflows/deploy-documentation.yml rename to .github/workflows/deploy.yml index 56106e6..15ecc0e 100644 --- a/.github/workflows/deploy-documentation.yml +++ b/.github/workflows/deploy.yml @@ -1,30 +1,29 @@ -name: Deploy Documentation +name: Deploy on: workflow_dispatch: push: branches: [master] jobs: - deploy-documentation: + deploy-docs: + name: Deploy Documentation runs-on: ubuntu-20.04 permissions: id-token: write pages: write environment: name: github-pages - url: ${{ steps.deploy-pages.outputs.page_url }} + url: ${{ steps.deploy-docs.outputs.page_url }} concurrency: group: pages cancel-in-progress: true steps: - - name: Checkout this repository + - name: Checkout Project uses: actions/checkout@v4.1.7 - - name: Install documentation dependencies - run: | - sudo apt-get update - sudo apt-get install -y doxygen + - name: Install Doxygen + run: sudo apt-get install -y doxygen - - name: Build documentation + - name: Build Documentation run: doxygen - name: Upload Documentation @@ -32,6 +31,6 @@ jobs: with: path: doc - - name: Deploy Pages - id: deploy-pages + - name: Deploy Documentation + id: deploy-docs uses: actions/deploy-pages@v4.0.5