From 8e0b6ad6a0726809156751d6efd523a8644396d9 Mon Sep 17 00:00:00 2001 From: "Hunter T." Date: Wed, 7 Aug 2024 14:43:11 -0700 Subject: [PATCH] Rename ci.yml --- .github/workflows/ci.yml | 26 -------------------- .github/workflows/mkdocs-deploy.yml | 37 +++++++++++++---------------- 2 files changed, 16 insertions(+), 47 deletions(-) delete mode 100644 .github/workflows/ci.yml 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