Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: ci

on:
pull_request:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm

- name: Install deps
run: npm ci

- name: Build
run: npm run build

- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: dist
path: ./dist

deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: miso-landing-web
url: ${{ steps.deploy-step.outputs.deployment-url }}
outputs:
deployment-url: ${{ steps.deploy-step.outputs.deployment-url }}
steps:
- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: dist
path: ./dist

- name: Deploy preview to Cloudflare Pages
id: deploy-step
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ vars.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy ./dist --project-name=miso-landing-web --branch=${{ github.head_ref }}
50 changes: 50 additions & 0 deletions .github/workflows/manual.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Deploy to Production

on:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm

- name: Install deps
run: npm ci

- name: Build
run: npm run build

- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: dist
path: ./dist

deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: miso-landing-web
url: ${{ steps.deploy-step.outputs.deployment-url }}
outputs:
deployment-url: ${{ steps.deploy-step.outputs.deployment-url }}
steps:
- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: dist
path: ./dist

- name: Deploy to Cloudflare Pages
id: deploy-step
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ vars.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy ./dist --project-name=miso-landing-web
23 changes: 23 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: "Semantic PR"

on:
pull_request_target:
types:
- opened
- edited
- synchronize

jobs:
main:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
types: |
fix
feat
chore
revert
Loading