2
0

löschen von nicht benötigten Datein

This commit is contained in:
2024-09-14 14:48:51 +02:00
parent 85bca2535d
commit 4a747cb4d5
17 changed files with 0 additions and 4244 deletions

3
.github/FUNDING.yml vendored
View File

@ -1,3 +0,0 @@
# These are supported funding model platforms
github: baptisteArno

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 275 KiB

Binary file not shown.

View File

@ -1,16 +0,0 @@
name: Automatically add issues to projects when labeled
on:
issues:
types:
- labeled
jobs:
add-to-project:
name: Add issue to project
runs-on: ubuntu-latest
steps:
- uses: actions/add-to-project@v0.3.0
with:
project-url: https://github.com/users/baptisteArno/projects/4
github-token: ${{ secrets.PERSONAL_TOKEN }}

View File

@ -1,41 +0,0 @@
name: Create Tag
on:
push:
branches:
- main
jobs:
create-tag:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: '${{ secrets.PERSONAL_TOKEN }}'
steps:
- uses: actions/checkout@v2
- name: 'Create main tag'
id: 'main'
uses: butlerlogic/action-autotag@1.1.2
with:
tag_prefix: 'v'
- name: 'Create latest tag'
if: ${{ contains(steps.main.outputs.tagname, 'v') }}
uses: EndBug/latest-tag@latest
- name: 'Create js tag'
uses: butlerlogic/action-autotag@1.1.2
with:
root: '/packages/embeds/js'
tag_prefix: 'js-v'
- name: 'Create react tag'
uses: butlerlogic/action-autotag@1.1.2
with:
root: '/packages/embeds/react'
tag_prefix: 'react-v'
- name: 'Create nextjs tag'
uses: butlerlogic/action-autotag@1.1.2
with:
root: '/packages/embeds/nextjs'
tag_prefix: 'nextjs-v'

View File

@ -1,34 +0,0 @@
name: Check and report chats usage
on:
schedule:
- cron: '0 * * * *'
jobs:
send:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./packages/scripts
env:
DATABASE_URL: '${{ secrets.DATABASE_URL }}'
ENCRYPTION_SECRET: '${{ secrets.ENCRYPTION_SECRET }}'
NEXTAUTH_URL: '${{ secrets.NEXTAUTH_URL }}'
NEXT_PUBLIC_VIEWER_URL: '${{ secrets.NEXT_PUBLIC_VIEWER_URL }}'
NEXT_PUBLIC_POSTHOG_KEY: '${{ secrets.NEXT_PUBLIC_POSTHOG_KEY }}'
NEXT_PUBLIC_POSTHOG_HOST: '${{ secrets.NEXT_PUBLIC_POSTHOG_HOST }}'
SMTP_USERNAME: '${{ secrets.SMTP_USERNAME }}'
SMTP_PASSWORD: '${{ secrets.SMTP_PASSWORD }}'
SMTP_HOST: '${{ secrets.SMTP_HOST }}'
SMTP_PORT: '${{ secrets.SMTP_PORT }}'
NEXT_PUBLIC_SMTP_FROM: '${{ secrets.NEXT_PUBLIC_SMTP_FROM }}'
STRIPE_SECRET_KEY: '${{ secrets.STRIPE_SECRET_KEY }}'
STRIPE_STARTER_PRICE_ID: '${{ secrets.STRIPE_STARTER_PRICE_ID }}'
STRIPE_STARTER_CHATS_PRICE_ID: '${{ secrets.STRIPE_STARTER_CHATS_PRICE_ID }}'
STRIPE_PRO_PRICE_ID: '${{ secrets.STRIPE_PRO_PRICE_ID }}'
STRIPE_PRO_CHATS_PRICE_ID: '${{ secrets.STRIPE_PRO_CHATS_PRICE_ID }}'
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v4
- run: pnpm i --frozen-lockfile
- run: pnpm turbo run checkAndReportChatsUsage

View File

@ -1,22 +0,0 @@
name: Daily database cleanup
on:
schedule:
- cron: '0 6 * * *'
jobs:
clean:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./packages/scripts
env:
DATABASE_URL: '${{ secrets.DATABASE_URL }}'
ENCRYPTION_SECRET: '${{ secrets.ENCRYPTION_SECRET }}'
NEXTAUTH_URL: 'http://localhost:3000'
NEXT_PUBLIC_VIEWER_URL: 'http://localhost:3001'
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v4
- run: pnpm i --frozen-lockfile
- run: pnpm turbo run db:cleanDatabase

View File

@ -1,23 +0,0 @@
name: Publish typebot-js to NPM
on:
push:
tags:
- 'js-lib-v*'
jobs:
publish:
runs-on: ubuntu-latest
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v4
- run: pnpm i --frozen-lockfile
- run: pnpm turbo build --filter=typebot-js...
- name: Set NPM_TOKEN in config
run: pnpm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
working-directory: ./packages/typebot-js
- name: Publish
run: pnpm publish --no-git-checks --access public
working-directory: ./packages/typebot-js

View File

@ -1,18 +0,0 @@
name: Publish @typebot.io/js package to NPM
on:
push:
tags:
- 'js-v*'
jobs:
publish:
runs-on: ubuntu-latest
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v4
- run: pnpm i --frozen-lockfile
- run: pnpm turbo build --filter=@typebot.io/js...
- run: cd packages/embeds/js && pnpm publish --no-git-checks --access public

View File

@ -1,18 +0,0 @@
name: Publish @typebot.io/nextjs package to NPM
on:
push:
tags:
- 'nextjs-v*'
jobs:
publish:
runs-on: ubuntu-latest
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v4
- run: pnpm i --frozen-lockfile
- run: pnpm turbo build --filter=@typebot.io/nextjs...
- run: cd packages/embeds/nextjs && pnpm publish --no-git-checks --access public

View File

@ -1,18 +0,0 @@
name: Publish @typebot.io/react package to NPM
on:
push:
tags:
- 'react-v*'
jobs:
publish:
runs-on: ubuntu-latest
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v4
- run: pnpm i --frozen-lockfile
- run: pnpm turbo build --filter=@typebot.io/react...
- run: cd packages/embeds/react && pnpm publish --no-git-checks --access public

View File

@ -1,173 +0,0 @@
name: Release new Typebot version
on:
push:
tags: ['v*', 'next']
jobs:
build-amd:
env:
DATABASE_URL: 'postgresql://'
strategy:
matrix:
app: ['builder', 'viewer']
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Extract existing image metadata
id: image-meta
uses: docker/metadata-action@v4
with:
images: baptistearno/typebot-${{ matrix.app }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build image
id: docker_build
uses: docker/build-push-action@v4
with:
context: .
labels: ${{ steps.image-meta.outputs.labels }}
platforms: linux/amd64
cache-from: type=gha,scope=${{ matrix.app }}-amd
cache-to: type=gha,scope=${{ matrix.app }}-amd,mode=max
build-args: |
SCOPE=${{ matrix.app }}
outputs: type=image,name=baptistearno/typebot-${{ matrix.app }},push-by-digest=true,name-canonical=true,push=true
- name: Export digest
run: |
mkdir -p /tmp/digests/${{ matrix.app }}
digest="${{ steps.docker_build.outputs.digest }}"
touch "/tmp/digests/${{ matrix.app }}/${digest#sha256:}"
- name: Upload digest
uses: actions/upload-artifact@v3
with:
name: digests-${{ matrix.app }}
path: /tmp/digests/${{matrix.app}}/*
if-no-files-found: error
retention-days: 1
build-arm:
env:
DATABASE_URL: 'postgresql://'
strategy:
matrix:
app: ['builder', 'viewer']
runs-on: buildjet-4vcpu-ubuntu-2204-arm
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Extract existing image metadata
id: image-meta
uses: docker/metadata-action@v4
with:
images: baptistearno/typebot-${{ matrix.app }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build image
id: docker_build
uses: docker/build-push-action@v4
with:
context: .
labels: ${{ steps.image-meta.outputs.labels }}
platforms: linux/arm64
cache-from: type=gha,scope=${{ matrix.app }}-arm
cache-to: type=gha,scope=${{ matrix.app }}-arm,mode=max
build-args: |
SCOPE=${{ matrix.app }}
outputs: type=image,name=baptistearno/typebot-${{ matrix.app }},push-by-digest=true,name-canonical=true,push=true
- name: Export digest
run: |
mkdir -p /tmp/digests/${{ matrix.app }}
digest="${{ steps.docker_build.outputs.digest }}"
touch "/tmp/digests/${{ matrix.app }}/${digest#sha256:}"
- name: Upload digest
uses: actions/upload-artifact@v3
with:
name: digests-${{ matrix.app }}
path: /tmp/digests/${{matrix.app}}/*
if-no-files-found: error
retention-days: 1
merge-and-push:
if: ${{ github.event_name != 'pull_request' }}
runs-on: ubuntu-latest
needs:
- build-amd
- build-arm
strategy:
matrix:
app: ['builder', 'viewer']
steps:
- name: Download AMD digests
uses: actions/download-artifact@v3
with:
name: digests-${{ matrix.app }}
path: /tmp/digests/${{ matrix.app }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: baptistearno/typebot-${{ matrix.app }}
tags: |
type=ref,event=branch
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
next
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Create manifest list and push
working-directory: /tmp/digests/${{ matrix.app }}
run: |
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
$(printf 'baptistearno/typebot-${{ matrix.app }}@sha256:%s ' *)
- name: Inspect image
run: |
docker buildx imagetools inspect baptistearno/typebot-${{ matrix.app }}:${{ steps.meta.outputs.version }}
create-release:
name: Create Release
runs-on: ubuntu-latest
needs: merge-and-push
if: startsWith(github.ref, 'refs/tags/v')
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Extract body from changelog
run: |
NEW_VERSION=$(echo '${{ github.ref }}' | sed 's/refs\/tags\/v//')
echo $NEW_VERSION
sed -n -e "/## ${NEW_VERSION}/,/<a/ p" ./CHANGELOG.md | sed -e '1,2d' | sed -e '$d' | sed -e '$d' > extractedBody.md
- name: Create Release
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
bodyFile: 'extractedBody.md'