Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v5
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
- env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
name: Install dependencies
Expand All @@ -50,13 +50,13 @@ jobs:
name: Build the site
run: mkdocs build
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3
with:
name: build-pr${{ github.event.pull_request.number }}-${{ github.run_id }}-${{ github.run_attempt }}
path: site
- id: netlify
name: Deploy to Netlify
uses: jsmrcaga/action-netlify-deploy@v2.4.0
uses: jsmrcaga/action-netlify-deploy@ae36ac1b3d1ad3646eecb5631977e7314d3a6a2f # v2.4.0
with:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_DEPLOY_TO_PROD: ${{ env.NETLIFY_DEPLOY_TO_PROD }}
Expand All @@ -65,7 +65,7 @@ jobs:
build_directory: site
install_command: echo Skipping installing the dependencies
- name: Comment PR
uses: meysam81/comment-pr@main
uses: meysam81/comment-pr@88ed6f1bdbde6b97a4940a7aa33b24addb8e0744 # main
with:
title: "# Live preview"
content: |
Expand Down Expand Up @@ -96,11 +96,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v5
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
- env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
name: Install dependencies
Expand All @@ -114,19 +114,19 @@ jobs:
name: Build the site
run: mkdocs build
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3
with:
name: build-${{ github.ref_name }}-${{ github.run_id }}-${{ github.run_attempt }}
path: site
- id: deployment
name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4
with:
artifact_name: build-${{ github.ref_name }}-${{ github.run_id }}-${{ github.run_attempt }}
- if: ${{ github.repository == 'developer-friendly/blog' }}
id: netlify
name: Deploy to Netlify
uses: jsmrcaga/action-netlify-deploy@v2.4.0
uses: jsmrcaga/action-netlify-deploy@ae36ac1b3d1ad3646eecb5631977e7314d3a6a2f # v2.4.0
with:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_DEPLOY_TO_PROD: ${{ env.NETLIFY_DEPLOY_TO_PROD }}
Expand All @@ -142,19 +142,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Calculate cache id
run: echo "cache_id=$(date --utc '+%V')" >> "$GITHUB_ENV"
- name: Cache lychee
uses: actions/cache@v4
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
with:
key: lychee-${{ env.cache_id }}
path: .lycheecache
restore-keys: |
lychee-
- id: lychee
name: Link Checker
uses: lycheeverse/lychee-action@v2
uses: lycheeverse/lychee-action@8646ba30535128ac92d33dfc9133794bfdd9b411 # v2
with:
fail: ${{ github.ref == 'refs/heads/main' }}

Expand All @@ -170,7 +170,7 @@ jobs:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v9
- uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9

mirror:
if: |
Expand All @@ -179,7 +179,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
fetch-depth: 0
- name: Mirror to GitLab
Expand Down
Loading