Skip to content

Move docs to main dir #86

Move docs to main dir

Move docs to main dir #86

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: Fetch core repo
uses: actions/checkout@v3
with:
repository: opentffoundation/opentf
path: opentf-repo
ref: main
sparse-checkout: docs
- name: Copy docs
run: mv opentf-repo/docs .
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "16"
- 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
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
wranglerVersion: 3