Skip to content

Commit

Permalink
update deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
jaanli committed Feb 18, 2024
1 parent b675ba2 commit e26e542
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,26 @@ jobs:
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - run: mkdir dist/examples && for i in examples/*; do if [ -d $i/dist ]; then mv -v $i/dist dist/examples/$(basename $i); fi; done
- uses: cloudflare/pages-action@1

# Optional: Add any other steps required to build your project here
# This might include building examples, preprocessing data, etc.

- name: Upload build artifact for GitHub Pages
uses: actions/upload-pages-artifact@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: framework
directory: dist
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
path: dist
# Specify the path to your build directory

- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v1
if: github.ref == 'refs/heads/main'
# - uses: cloudflare/pages-action@1
# with:
# apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
# accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
# projectName: framework
# directory: dist
# gitHubToken: ${{ secrets.GITHUB_TOKEN }}
# TODO: This doesn't include the examples. How can we fix that?
# TODO: Re-enable deploy to Observable
# - name: Deploy to Observable
Expand Down

0 comments on commit e26e542

Please sign in to comment.