diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..78f09b6 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,20 @@ +kind: 'pipeline' +type: 'docker' +name: 'Build and Deploy' + +steps: + - name: Build + image: 'node:20' + commands: + - corepack enable && pnpm config set store-dir .cache/pnpm + - pnpm i + - pnpm build + - name: Deploy + image: 'plugins/gh-pages' + settings: + username: oauth2 + password: + from_secret: GITEA_TOKEN + copy_contents: true + pages_directory: build + target_branch: pages diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml deleted file mode 100644 index 852575a..0000000 --- a/.github/workflows/deploy.yaml +++ /dev/null @@ -1,42 +0,0 @@ -name: Build & Deploy -on: - push: - branches: - - master - pull_request: - - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Install pnpm - uses: pnpm/action-setup@v3 - with: - version: 8 - - - name: Install Node.js - uses: actions/setup-node@v4 - with: - cache: pnpm - node-version: 20 - - name: Install dependencies - run: pnpm install - - name: Vite - run: pnpm build - - - name: Deploy - uses: addnab/docker-run-action@v3 - with: - image: plugins/gh-pages - run: /bin/drone-gh-pages - env: - PLUGIN_USERNAME: oauth2 - PLUGIN_PASSWORD: ${{ secrets.GITHUB_TOKEN }} - PLUGIN_TARGET_BRANCH: pages - PLUGIN_PAGES_DIRECTORY: build - PLUGIN_REMOTE_URL: https://git.froth.zone/infrastructure/pages-landing-page - PLUGIN_COPY_CONTENTS: true - PLUGIN_LOG_LEVEL: debug \ No newline at end of file diff --git a/package.json b/package.json index 20791ec..e630fcc 100644 --- a/package.json +++ b/package.json @@ -9,9 +9,7 @@ "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", "lint": "prettier --check . && eslint .", - "format": "prettier --write .", - "predeploy": "pnpm run build", - "deploy": "gh-pages -d build -r git@git.froth.zone:sam/static-pages.git -b pages --cname pages.git.froth.zone" + "format": "prettier --write ." }, "devDependencies": { "@skeletonlabs/skeleton": "2.9.0",