doocs/advanced-java
3 workflows · maturity 0% · 1 patterns · GitHub ↗
Practices
○ Matrix○ Permissions○ Security scan○ AI review○ Cache○ Concurrency○ Reusable workflows
Detected patterns
Security dimensions
Workflows (3)
compress .github/workflows/compress.yml
View raw YAML
name: Compress
on:
schedule:
- cron: "0 0 * * 3"
workflow_dispatch:
jobs:
compress:
runs-on: ubuntu-latest
if: github.repository == 'doocs/advanced-java'
steps:
- name: Checkout Branch
uses: actions/checkout@v6
- name: Compress Images
id: calibre
uses: calibreapp/image-actions@main
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
compressOnly: true
- name: Commit Files
if: |
steps.calibre.outputs.markdown != ''
run: |
git config --local user.email "szuyanglb@outlook.com"
git config --local user.name "yanglbme"
git commit -m "chore: auto compress images" -a
- name: Push Changes
if: |
steps.calibre.outputs.markdown != ''
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}deploy .github/workflows/deploy.yml
View raw YAML
name: Build and deploy
on:
push:
branches: [main]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 22
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build with VitePress
run: pnpm run docs:build
- name: Generate CNAME
run: echo "java.doocs.org" > docs/.vitepress/dist/CNAME
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs/.vitepress/dist
deploy:
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github_pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
starcharts .github/workflows/starcharts.yml
View raw YAML
name: Starcharts
on:
schedule:
- cron: "0 0/12 * * *"
workflow_dispatch:
jobs:
update-readme:
name: Generate starcharts
runs-on: ubuntu-latest
steps:
- uses: MaoLongLong/actions-starcharts@main
with:
github_token: ${{ secrets.ACTION_TOKEN }}
svg_path: images/starcharts.svg
commit_message: "chore: auto update starcharts"
stars_change: ${{ secrets.STARS_CHANGE }}