Improve local dev DX by using just
(athena-framework/athena#501)
#312
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
name: Sync | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
sync: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.SYNC_TOKEN }} | |
- name: Sync Repos | |
run: ./scripts/repo.sh sync | |
env: | |
BEFORE_SHA: ${{ github.event.before }} | |
AFTER_SHA: ${{ github.event.after }} | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.SSH_KEY }} | |
- uses: actions/checkout@v4 | |
- uses: extractions/setup-just@v2 | |
- name: Install Crystal | |
uses: crystal-lang/install-crystal@v1 | |
- name: Install Components | |
run: shards install --without-development | |
env: | |
SHARDS_OVERRIDE: shard.dev.yml | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: 3.x | |
- name: Build Docs | |
run: just build-docs | |
- name: Publish to Cloudflare Pages | |
uses: cloudflare/wrangler-action@v3 | |
with: | |
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
command: pages deploy ./site --project-name=athenaframework --branch=dev |