diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml new file mode 100644 index 00000000..1ccc57cc --- /dev/null +++ b/.github/actions/setup/action.yml @@ -0,0 +1,14 @@ +name: Setup + +description: Checkout repository & install dependencies + +runs: + using: composite + steps: + - uses: actions/setup-node@v4 + with: + node-version-file: .nvmrc + cache: yarn + + - run: yarn install --immutable + shell: bash diff --git a/.github/workflows/apps.yml b/.github/workflows/apps.yml new file mode 100644 index 00000000..7ac5ad64 --- /dev/null +++ b/.github/workflows/apps.yml @@ -0,0 +1,25 @@ +name: Applications + +on: + push: + branches: [main] + +jobs: + deploy-documentation: + runs-on: ubuntu-latest + + permissions: + contents: read + + steps: + - uses: actions/checkout@v4 + - uses: ./.github/actions/setup + + - run: yarn build + + - uses: cloudflare/pages-action@v1 + with: + apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} + accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + projectName: reactive-dot + directory: apps/docs/build diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 00000000..b009dfb9 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +lts/*