Skip to content

Commit

Permalink
chore: cleanup manual deploy (#105)
Browse files Browse the repository at this point in the history
Co-authored-by: CokaKoala <[email protected]>
  • Loading branch information
huntabyte and AdrianGonz97 authored Jun 30, 2024
1 parent 60d6966 commit cb71df0
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 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
name: Manual Docs Deployment
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 @@ -29,12 +22,10 @@ jobs:
- name: Install dependencies
run: pnpm install

- name: Build site
if: steps.changesets.outputs.published == 'true'
run: pnpm -F docs build
- name: Build package & site
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

0 comments on commit cb71df0

Please sign in to comment.