Skip to content

Commit

Permalink
Deploying docs manually, without the help of withastro/action (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
iwoplaza authored Aug 12, 2024
1 parent 0001a4f commit 4de0322
Showing 1 changed file with 29 additions and 4 deletions.
33 changes: 29 additions & 4 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,37 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout your repository using git
- name: Checkout Code Repository
uses: actions/checkout@v4
- name: Install, build, and upload your site
uses: withastro/action@v2
with:
path: apps/typed-binary-docs # The root location of your Astro project inside the repository.
fetch-depth: 1

- name: Print commit id, message and tag
run: |
git show -s --format='%h %s'
echo "github.ref -> {{ github.ref }}"
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
run_install: false

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 22.x
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --recursive --frozen-lockfile

- name: Build all
run: pnpm build

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./apps/typed-binary-docs/dist

deploy:
needs: build
Expand Down

0 comments on commit 4de0322

Please sign in to comment.