Skip to content

Commit

Permalink
feat: astro
Browse files Browse the repository at this point in the history
still wip
  • Loading branch information
eddienubes committed Feb 11, 2024
1 parent db8727f commit 91153c1
Showing 1 changed file with 34 additions and 2 deletions.
36 changes: 34 additions & 2 deletions .github/workflows/astro.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Deploy Astro site to Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
branches: [ "main" ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down Expand Up @@ -58,6 +58,38 @@ jobs:
- name: Build
run: pnpm run build

-
- name: Upload
uses: actions/upload-pages-artifact@v3
with:
name: Astro Artifact
dist: ./dist

- name: Commit and Push
run: |
git add .
git commit -m "docs(astro): deploy to pages"
git push
deploy:
# Add a dependency to the build job
needs: build

# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source

# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

# Specify runner + deployment step
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4


0 comments on commit 91153c1

Please sign in to comment.