v0.7.1 #45
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy site and app | |
on: | |
workflow_dispatch: | |
push: | |
tags: | |
- v* | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
deployments: write | |
name: Deploy to Cloudflare Pages | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
# PikaTorrent site | |
- name: Build site | |
run: npm ci && npm run build:site | |
- name: Publish site | |
uses: cloudflare/pages-action@1 | |
with: | |
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
projectName: pikatorrent-site | |
directory: apps/site/out | |
gitHubToken: ${{ secrets.GITHUB_TOKEN }} | |
# PikaTorrent app | |
# We can not upload assets/node_modules with wrangler for now | |
# See https://github.com/cloudflare/workers-sdk/issues/3615 | |
# - name: Build app | |
# run: SIGNALING_URL=${{ vars.SIGNALING_URL }} npm run build:web | |
# - name: Publish app | |
# uses: cloudflare/pages-action@1 | |
# with: | |
# apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
# accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
# projectName: pikatorrent-app | |
# directory: apps/app/dist | |
# gitHubToken: ${{ secrets.GITHUB_TOKEN }} |