Skip to content

Commit

Permalink
Bump download-artifact and cache actions to v4 (#18)
Browse files Browse the repository at this point in the history
* Update cache action and add docs-update push event in deploy-docs.yml

* Upgrade download-artifact to v4 in publish-to-pypi.yml
  • Loading branch information
mdapena authored Oct 17, 2024
1 parent 2ab1605 commit f1484ae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
name: Docs

on:
push:
branches:
- docs-update
release:
types:
- created
workflow_dispatch:

permissions:
contents: write
Expand All @@ -26,7 +28,7 @@ jobs:
with:
python-version: "3.11"
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
run: python -m build

- name: Store the distribution packages
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: python-package-distributions
path: dist/
Expand All @@ -46,7 +46,7 @@ jobs:

steps:
- name: Download all the dists
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: dist/
Expand Down

0 comments on commit f1484ae

Please sign in to comment.