Skip to content

Commit ab3160f

Browse files
committed
fix: github action remove astro action
1 parent a0f244b commit ab3160f

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

.github/workflows/deploy.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,28 +15,28 @@ permissions:
1515
id-token: write
1616

1717
jobs:
18-
build:
18+
build-and-deploy:
1919
runs-on: ubuntu-22.04
2020
steps:
2121
- name: Checkout your repository using git
2222
uses: actions/checkout@v4
23-
- name: Install, build, and upload your site
24-
uses: withastro/action@v3
23+
24+
- name: Setup PNPM
25+
uses: pnpm/action-setup@v4
2526
with:
26-
# path: . # The root location of your Astro project inside the repository. (optional)
27-
node-version: 20 # The specific version of Node that should be used to build your site. Defaults to 20. (optional)
28-
package-manager: pnpm@latest # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)
27+
version: ${{ env.VERSION }}
28+
package_json_file: "${{ inputs.path }}/package.json"
29+
30+
- name: Install
31+
shell: "bash"
32+
working-directory: ${{ inputs.path }}
33+
run: pnpm install
34+
35+
- name: Build
36+
shell: "bash"
37+
working-directory: ${{ inputs.path }}
38+
run: pnpm run build
2939

30-
deploy:
31-
needs: build
32-
runs-on: ubuntu-22.04
33-
environment:
34-
name: github-pages
35-
url: ${{ steps.deployment.outputs.page_url }}
36-
steps:
37-
# - name: Deploy to GitHub Pages
38-
# id: deployment
39-
# uses: actions/deploy-pages@v4
4040
- name: Deploy to GitHub Pages
4141
uses: peaceiris/actions-gh-pages@v4
4242
with:

0 commit comments

Comments
 (0)