Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianGonz97 committed Aug 3, 2024
1 parent d00ccd7 commit d0810df
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 16 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/build-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 20
Expand All @@ -32,4 +30,4 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: preview-build
path: build
path: sites/docs/.svelte-kit/cloudflare
Original file line number Diff line number Diff line change
@@ -1,24 +1,17 @@
name: Production Deployment
name: Deploy Docs
on:
push:
branches:
- main
paths:
- sites/docs/**
- packages/runed/**
workflow_dispatch:

jobs:
deploy-production:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
name: Deploy Production Site to Cloudflare Pages
name: Manual Docs Deployment
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 20
Expand All @@ -27,7 +20,7 @@ jobs:
- name: Install dependencies
run: pnpm install

- name: Build site
- name: Build package & site
run: pnpm build

- name: Deploy to Cloudflare Pages
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
steps:
- name: Download build artifact
uses: actions/download-artifact@v4
id: preview-build-artifact
with:
name: preview-build
path: build
Expand All @@ -32,6 +33,5 @@ jobs:
accountId: ${{ secrets.CF_ACCOUNT_ID }}
githubToken: ${{ secrets.GITHUB_TOKEN }}
projectName: runed
directory: ./.svelte-kit/cloudflare
workingDirectory: sites/docs
deploymentName: Preview
directory: ${{ steps.preview-build-artifact.outputs.download-path }}

0 comments on commit d0810df

Please sign in to comment.