Skip to content

Commit

Permalink
withastro
Browse files Browse the repository at this point in the history
  • Loading branch information
diegolikescode committed Feb 25, 2025
1 parent 4a0f3a8 commit 9a033b0
Showing 1 changed file with 5 additions and 22 deletions.
27 changes: 5 additions & 22 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,10 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
- name: checkout repo with git
uses: actions/checkout@v4

- name: Install dependencies
run: npm ci

- name: Build the site
run: npm run build

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: github-pages
path: dist
retention-days: 1
- name: install, build and upload
uses: withastro/action@v1

deploy:
needs: build
Expand All @@ -37,12 +26,6 @@ jobs:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: github-pages
path: dist

- name: Deploy to GitHub Pages
- name: deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v1

0 comments on commit 9a033b0

Please sign in to comment.