Skip to content

Commit

Permalink
fix(ci): bump action vers
Browse files Browse the repository at this point in the history
  • Loading branch information
leohhhn committed Feb 7, 2025
1 parent 6a3d32c commit ecaafdd
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

Expand All @@ -22,8 +21,8 @@ concurrency:
cancel-in-progress: false

jobs:
# Single deploy job since we're just deploying
deploy:
# Build job
build:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
Expand All @@ -34,10 +33,20 @@ jobs:
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
# Upload entire posts dir
name: 'github-pages'
path: './posts'

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v4

0 comments on commit ecaafdd

Please sign in to comment.