Update and rename main.yml to documentation.yml
diff --git a/.github/workflows/main.yml b/.github/workflows/documentation.yml
similarity index 66%
rename from .github/workflows/main.yml
rename to .github/workflows/documentation.yml
index 8e6b83c..d5c084c 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/documentation.yml
@@ -10,12 +10,14 @@
     runs-on: ubuntu-18.04
     steps:
     - uses: actions/checkout@master
+    
+    - name: depedencies
+      env:
+        dependency_packages: doxygen
+      run: apt-get update && apt-get -y install ${dependency_packages}
 
     - name: build
-      run: |
-        apt -y install doxygen
-        cd doc
-        doxygen ./Doxyfile
+      run: cd doc && doxygen ./Doxyfile
 
     - name: deploy
       uses: peaceiris/actions-gh-pages@v2.2.0