Skip to content

Commit

Permalink
Remove docs after migrate to docs repo (janhq#2465)
Browse files Browse the repository at this point in the history
Co-authored-by: Hien To <[email protected]>
  • Loading branch information
hiento09 and hiento09 authored Mar 22, 2024
1 parent b8cee87 commit a76c127
Show file tree
Hide file tree
Showing 440 changed files with 31 additions and 41,434 deletions.
75 changes: 0 additions & 75 deletions .github/workflows/clean-cloudflare-page-preview-url-and-r2.yml

This file was deleted.

31 changes: 31 additions & 0 deletions .github/workflows/clean-cloudflare-r2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: "Clean Cloudflare R2 nightly build artifacts older than 10 days"
on:
schedule:
- cron: "0 0 * * *" # every day at 00:00
workflow_dispatch:

jobs:
clean-cloudflare-r2:
runs-on: ubuntu-latest
environment: production
steps:
- name: install-aws-cli-action
uses: unfor19/install-aws-cli-action@v1
- name: Delete object older than 10 days
run: |
# Get the list of objects in the 'latest' folder
OBJECTS=$(aws s3api list-objects --bucket ${{ secrets.CLOUDFLARE_R2_BUCKET_NAME }} --prefix "latest/" --query 'Contents[?LastModified<`'$(date -d "$current_date -10 days" -u +"%Y-%m-%dT%H:%M:%SZ")'`].{Key: Key}' --endpoint-url https://${{ secrets.CLOUDFLARE_ACCOUNT_ID }}.r2.cloudflarestorage.com | jq -c .)
# Create a JSON file for the delete operation
echo "{\"Objects\": $OBJECTS, \"Quiet\": false}" > delete.json
# Delete the objects
echo q | aws s3api delete-objects --bucket ${{ secrets.CLOUDFLARE_R2_BUCKET_NAME }} --delete file://delete.json --endpoint-url https://${{ secrets.CLOUDFLARE_ACCOUNT_ID }}.r2.cloudflarestorage.com
# Remove the JSON file
rm delete.json
env:
AWS_ACCESS_KEY_ID: ${{ secrets.CLOUDFLARE_R2_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.CLOUDFLARE_R2_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: auto
AWS_EC2_METADATA_DISABLED: "true"
114 changes: 0 additions & 114 deletions .github/workflows/jan-docs.yml

This file was deleted.

6 changes: 0 additions & 6 deletions docs/.env.example

This file was deleted.

20 changes: 0 additions & 20 deletions docs/.gitignore

This file was deleted.

86 changes: 0 additions & 86 deletions docs/README.md

This file was deleted.

3 changes: 0 additions & 3 deletions docs/babel.config.js

This file was deleted.

Loading

0 comments on commit a76c127

Please sign in to comment.