Move files in preparation for monorepo migration

This commit is contained in:
Jai A
2024-07-03 11:13:51 -07:00
parent b6618f81f8
commit ff946b4f2f
344 changed files with 0 additions and 32 deletions

View File

@@ -0,0 +1,20 @@
name: Deploy
on: push
jobs:
deploy:
if: github.repository_owner == 'modrinth'
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
steps:
- name: Cloudflare Pages deployment
uses: WalshyDev/cf-pages-await@v1
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
accountId: '9ddae624c98677d68d93df6e524a6061'
project: 'knossos'
githubToken: ${{ secrets.GITHUB_TOKEN }}
commitHash: ${{ steps.push-changes.outputs.commit-hash }}

41
apps/knossos/.github/workflows/nuxt.yml vendored Normal file
View File

@@ -0,0 +1,41 @@
name: Build + Lint
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Install pnpm via corepack
shell: bash
run: |
corepack enable
corepack prepare --activate
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Setup pnpm cache
uses: actions/cache@v3
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- name: Run Lint
run: pnpm lint
- name: Build
run: pnpm build

View File

@@ -0,0 +1,15 @@
name: Regenerate tags
on:
schedule:
- cron: '*/30 * * * *'
jobs:
regenerate:
runs-on: ubuntu-latest
if: github.repository_owner == 'modrinth'
steps:
- name: Re-deploy site
run: |
curl -X POST \
${{ secrets.CLOUDFLARE_DEPLOY_URL }}