Skip to content

Commit

Permalink
build: add cloudflare deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
t03i committed Nov 9, 2024
1 parent 0160e71 commit dfbce74
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ jobs:
id: build-artifact
uses: actions/upload-artifact@v4
with:
include-hidden-files: true
name: frontend-build
path: ${{ github.workspace }}/frontend-build.tar
retention-days: 1
18 changes: 18 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,3 +144,21 @@ jobs:
registry: ${{ vars.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

release-cloudflare:
needs: [release-frontend, release-github]
if: needs.determine-release.outputs.release_needed == 'true'
runs-on: ubuntu-latest
environment: production
steps:
- name: Download Build Artifacts
uses: actions/download-artifact@v4
with:
name: frontend-build
path: dist/
- name: Upload Build Artifacts
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy dist/ --project-name=tmvisdb

0 comments on commit dfbce74

Please sign in to comment.