Skip to content

Commit 543d271

Browse files
authored
Database example (#245)
1 parent 1c6c26f commit 543d271

18 files changed

+171
-435
lines changed

.github/workflows/release.yaml

+27
Original file line numberDiff line numberDiff line change
@@ -412,3 +412,30 @@ jobs:
412412
# GitHub sets the GITHUB_TOKEN secret automatically.
413413
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
414414
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
415+
416+
# After an alpha release, remove the alpha docs from main branch
417+
cleanup-alpha-examples:
418+
needs: [ "validate", "goreleaser" ]
419+
if: ${{ needs.validate.outputs.enable_alpha == 'true' }}
420+
runs-on: ubuntu-latest
421+
permissions:
422+
contents: write
423+
pull-requests: write
424+
steps:
425+
- name: Checkout
426+
uses: actions/checkout@v4
427+
with:
428+
ssh-key: ${{secrets.DEPLOY_SSH_PRIVATE_KEY }}
429+
430+
- name: Build docs for stable release
431+
run: |
432+
make docs
433+
434+
- name: Commit
435+
run: |
436+
git add docs/resources/
437+
git diff --quiet --exit-code && (echo "No changes detected" && exit 0)
438+
git config --global user.name "Release Github Action"
439+
git config --global user.email "[email protected]"
440+
git commit -a -m "Remove alpha docs from main branch"
441+
git push

docs/resources/clickpipe.md

-268
This file was deleted.

docs/resources/database.md

-31
This file was deleted.

docs/resources/grant_privilege.md

-42
This file was deleted.

0 commit comments

Comments
 (0)