Skip to content

Commit

Permalink
Update deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
x0k committed Jun 15, 2024
1 parent 97f1784 commit 5081fdd
Showing 1 changed file with 25 additions and 6 deletions.
31 changes: 25 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,34 @@ permissions:
jobs:
build:
runs-on: ubuntu-latest
# Remote Caching.
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
TURBO_REMOTE_ONLY: true
steps:
- name: Checkout your repository using git
uses: actions/checkout@v4
- name: Install, build, and upload your site
uses: withastro/action@v2
# with:
# 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)

- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9
run_install: true

- name: Build
run: pnpm run build

- name: Upload Pages Artifact
uses: actions/upload-pages-artifact@v3
with:
path: "apps/ppp/dist/"

deploy:
needs: build
Expand Down

0 comments on commit 5081fdd

Please sign in to comment.