Skip to content

Commit

Permalink
Merge pull request #605 from 3mdeb/fix-workflow
Browse files Browse the repository at this point in the history
Fix workflow & update actions
  • Loading branch information
artur-rs authored Sep 24, 2024
2 parents e496f1b + 42e74ea commit d5272df
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
echo "HUGO_URL=${HUGO_URL}" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4.1.7
with:
fetch-depth: 1

Expand All @@ -33,12 +33,13 @@ jobs:
run: cd ${GITHUB_WORKSPACE}/scripts && bash build.sh

- name: Save artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4.4.0
with:
name: static-content
path: |
scripts/deploy.sh
blog/public/
include-hidden-files: true

deploy:
needs: [build]
Expand All @@ -57,7 +58,7 @@ jobs:
sudo apt-get install -y sshpass
- name: Download artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4.1.8
with:
name: static-content
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/seo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/[email protected].1
uses: actions/[email protected].7

- name: Test links
uses: 3mdeb/lychee-log-action@main
Expand All @@ -24,17 +24,17 @@ jobs:
name: Check orphan pages
steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4.1.7
with:
submodules: true

- name: Checkout SEO Spy
uses: actions/checkout@v3
uses: actions/checkout@v4.1.7
with:
repository: 3mdeb/seo-spy
path: seo-spy

- uses: actions/setup-python@v3
- uses: actions/setup-python@v5.2.0
with:
python-version: '3.9'

Expand All @@ -44,7 +44,7 @@ jobs:
pip install -r seo-spy/requirements.txt
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
uses: peaceiris/actions-hugo@v3.0.0
with:
extended: true

Expand All @@ -64,12 +64,12 @@ jobs:
name: Check canonical links
steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4.1.7
with:
submodules: true

- name: Checkout SEO Spy
uses: actions/checkout@v3
uses: actions/checkout@v4.1.7
with:
repository: 3mdeb/seo-spy
path: seo-spy
Expand All @@ -84,7 +84,7 @@ jobs:
pip install -r seo-spy/requirements.txt
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
uses: peaceiris/actions-hugo@v3.0.0
with:
extended: true

Expand Down

0 comments on commit d5272df

Please sign in to comment.