.github/workflows/main.yaml #696
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- main | |
schedule: | |
# Run every hour | |
- cron: '0 * * * *' | |
jobs: | |
publish_archive_job: | |
runs-on: ubuntu-latest | |
name: A job to publish zulip-archive in GitHub pages | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Run archive | |
id: archive | |
uses: zulip/zulip-archive@master | |
with: | |
zulip_organization_url: ${{ secrets.zulip_organization_url }} | |
zulip_bot_email: ${{ secrets.zulip_bot_email }} | |
zulip_bot_key: ${{ secrets.zulip_bot_key }} | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
# To keep the git history from ballooning, will overwrite the Git | |
# history in the repository, but keep all the content. | |
delete_history: true | |
archive_branch: main |