Skip to content

Commit

Permalink
Update build pipeline to latest action versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericmjl committed Apr 30, 2023
1 parent 77d8af1 commit e16db2f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/publish.yml
Expand Up @@ -7,10 +7,12 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# https://github.com/actions/checkout
- uses: actions/checkout@v3

# https://github.com/actions/setup-python
- name: Setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: "3.8"

Expand All @@ -22,8 +24,9 @@ jobs:
id: pip-cache
run: echo "::set-output name=dir::$(pip cache dir)"

# https://github.com/actions/cache
- name: Cache dependencies
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
Expand All @@ -34,6 +37,7 @@ jobs:

- run: python build.py

# https://github.com/peaceiris/actions-gh-pages
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down

0 comments on commit e16db2f

Please sign in to comment.