Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: cleanup manual deploy #105

Merged
merged 4 commits into from
Jun 30, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,14 @@ name: Deploy Docs
on:
workflow_dispatch:

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
deploy:
permissions:
contents: write # to create release (changesets/action)
pull-requests: write # to create pull request (changesets/action)
deployments: write
name: Deploy
huntabyte marked this conversation as resolved.
Show resolved Hide resolved
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0

- uses: pnpm/action-setup@v4

Expand All @@ -30,11 +23,9 @@ jobs:
run: pnpm install

- name: Build site
huntabyte marked this conversation as resolved.
Show resolved Hide resolved
if: steps.changesets.outputs.published == 'true'
run: pnpm -F docs build
run: pnpm build

- name: Deploy to Cloudflare Pages
if: steps.changesets.outputs.published == 'true'
uses: AdrianGonz97/refined-cf-pages-action@v1
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
Expand Down