Skip to content

Commit

Permalink
gh action for fronted deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Turcan committed Jul 3, 2023
1 parent 1c9769f commit f4a65f5
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/frontend.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: frontend

on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
name: Publish to Cloudflare Pages
steps:
- name: Checkouts
uses: actions/checkout@v3

- name: Install dependencies
run: npm ci
working-directory: .

- name: Build source code.
run: npm run build
working-directory: .

- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@1
with:
apiToken: ${{ secrets.CLOUDFLARE_PAGES_TOKEN }}
accountId: 620ff29bbd515d2848f5306578bd1d1d
projectName: alliance-dashboard
directory: .next
gitHubToken: ${{ secrets.TFL_GITHUB_TOKEN }}

0 comments on commit f4a65f5

Please sign in to comment.