From 6afaf3965648301460ad8b84addbb180a82bfcd9 Mon Sep 17 00:00:00 2001 From: Rongmario Date: Thu, 7 Sep 2023 22:25:36 +0100 Subject: [PATCH] setup-python cache + use pipe to run multiple commands --- .github/workflows/deploy.yaml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 7850147..624851b 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -13,12 +13,7 @@ jobs: - uses: actions/setup-python@v4 with: python-version: 3.x - - run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV - - uses: actions/cache@v3 - with: - key: mkdocs-material-${{ env.cache_id }} - path: .cache - restore-keys: | - mkdocs-material- - - run: pip install mkdocs-material - - run: mkdocs gh-deploy --force \ No newline at end of file + cache: 'pip' + - run: | + pip install -r dependencies.txt + mkdocs gh-deploy --force \ No newline at end of file