Skip to content

Commit

Permalink
feat: github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
colmugx committed Jul 31, 2024
1 parent 8db2120 commit 23fee29
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,18 @@ jobs:
steps:
- name: Checkout your repository using git
uses: actions/checkout@v4
- name: Install, build, and upload your site
uses: withastro/action@v2
- name: Install
shell: "bash"
working-directory: "."
run: pnpm install
- name: Build
shell: "bash"
working-directory: "."
run: pnpm run build:ci
- name: Upload Pages Artifact
uses: actions/upload-pages-artifact@v3
with:
# path: .
node-version: 20
package-manager: pnpm@latest
path: "./dist/"

deploy:
needs: build
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
"build": "astro check && astro build",
"preview": "astro preview",
"astro": "astro",
"build:ci": "astro check && astro build"
"build:ci": "astro build"
},
"dependencies": {
"@astrojs/check": "^0.8.3",
"@astrojs/markdown-remark": "^5.2.0",
"@astrojs/mdx": "^3.1.3",
"@astrojs/rss": "^4.0.4",
"@astrojs/sitemap": "^3.0.5",
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 23fee29

Please sign in to comment.