Skip to content

implement accordion #21

implement accordion

implement accordion #21

Workflow file for this run

name: Deploy
on:
push:
workflow_dispatch:
permissions:
contents: read
deployments: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "16"
- uses: chrnorm/deployment-action@v2
id: deployment
name: Create GitHub deployment
with:
token: ${{ github.token }}
environment: ${{ github.ref == 'refs/heads/main' && 'production' || 'preview' }}
- name: Install dependencies
run: npm ci
- name: Build website
run: npm run build
- name: Publish to Cloudflare Pages
id: publish
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: opentf-website
directory: ./build
wranglerVersion: 2
- name: Update deployment status (success)
if: success()
uses: chrnorm/deployment-status@v2
with:
token: ${{ github.token }}
environment-url: ${{ steps.publish.outputs.url }}
deployment-id: ${{ steps.deployment.outputs.deployment_id }}
state: "success"
- name: Update deployment status (failure)
if: failure()
uses: chrnorm/deployment-status@v2
with:
token: ${{ github.token }}
deployment-id: ${{ steps.deployment.outputs.deployment_id }}
state: "failure"