diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index e93a0e7..0000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: Deploy customized unix terminal github page - -on: - push: - # Runs on pushes targeting the default branch - branches: ["main"] - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -permissions: - contents: write - -jobs: - deploy: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 - with: - python-version: 3.x - - uses: actions/cache@v2 - with: - key: ${{ github.ref }} - path: .cache - - run: pip install -r mkdocs-requirements.txt - - run: mkdocs gh-deploy --force diff --git a/.github/workflows/mkdocs-deploy.yml b/.github/workflows/mkdocs-deploy.yml index ba1fddc..e93a0e7 100644 --- a/.github/workflows/mkdocs-deploy.yml +++ b/.github/workflows/mkdocs-deploy.yml @@ -1,31 +1,26 @@ -name: Deploy MkDocs Site +name: Deploy customized unix terminal github page on: push: - branches: - - main + # Runs on pushes targeting the default branch + branches: ["main"] + # Allows you to run this workflow manually from the Actions tab workflow_dispatch: +permissions: + contents: write + jobs: deploy: runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - - name: Set up Python - uses: actions/setup-python@v4 + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 with: - python-version: '3.x' - - - name: Install MkDocs and Deploy Dependencies - run: | - python -m pip install --upgrade pip - pip install mkdocs mkdocs-material mkdocs-gh-deploy - - - name: Deploy MkDocs Site - run: mkdocs gh-deploy --force - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - + python-version: 3.x + - uses: actions/cache@v2 + with: + key: ${{ github.ref }} + path: .cache + - run: pip install -r mkdocs-requirements.txt + - run: mkdocs gh-deploy --force