diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 1d5790f..886773d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,8 +1,8 @@ name: Deploy to GitHub Pages on: - # Trigger the workflow every time you push to the `master` branch - # Using a different branch name? Replace `master` with your branch’s name + # Trigger the workflow every time you push to the `main` branch + # Using a different branch name? Replace `main` with your branch’s name push: branches: [ master ] # Allows you to run this workflow manually from the Actions tab on GitHub. @@ -20,18 +20,12 @@ jobs: steps: - name: Checkout your repository using git uses: actions/checkout@v4 - - name: Setup Node.js - uses: actions/setup-node@v3 + - name: Install, build, and upload your site + uses: withastro/action@v3 with: - node-version: 20 - - name: Setup pnpm - uses: pnpm/action-setup@v2 - with: - version: 8 # Specify the desired pnpm version - - name: Install dependencies - run: pnpm install - - name: Build your Astro site - run: pnpm build + path: . # The root location of your Astro project inside the repository. (optional) + node-version: 20 # The specific version of Node that should be used to build your site. Defaults to 20. (optional) + 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) deploy: needs: build @@ -42,4 +36,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v4 + uses: actions/deploy-pages@v4 \ No newline at end of file