diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..d96d345 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,25 @@ +name: Release + +on: + schedule: + - cron: "0 0 * * *" + workflow_dispatch: + +jobs: + update: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Update + run: make update + - name: Create Release Tag + id: tag + run: echo "RELEASE_TAG=v$(date +'%Y.%m.%d')" >> $GITHUB_OUTPUT + - name: Release + uses: ncipollo/release-action@v1 + with: + artifacts: "*.tar.gz" + tag: ${{ steps.tag.outputs.RELEASE_TAG }} diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml deleted file mode 100644 index cddbb86..0000000 --- a/.github/workflows/update.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: Update - -on: - schedule: - - cron: "0 0 * * *" - workflow_dispatch: - -jobs: - update: - runs-on: ubuntu-latest - permissions: - contents: write - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Update Knowledge Base - run: make update - - - name: Commit and push to GitHub - uses: stefanzweifel/git-auto-commit-action@v5 - with: - commit_message: "feat: update knowledge base" - commit_user_email: ivan.gabriele@protonmail.com - commit_user_name: Ivan Gabriele diff --git a/.gitignore b/.gitignore index 326ac94..c138772 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /.output/* !/.output/README.md -/db-dump.tar.gz + +/*.tar.gz diff --git a/CUSTOM-GPT-RUST-TAURI-KNOWLEDGE-BASE_20231111-215231.tar.gz b/CUSTOM-GPT-RUST-TAURI-KNOWLEDGE-BASE_20231111-215231.tar.gz deleted file mode 100644 index 79e1af8..0000000 Binary files a/CUSTOM-GPT-RUST-TAURI-KNOWLEDGE-BASE_20231111-215231.tar.gz and /dev/null differ