π add Linux display stack zettels for i3 setup #584
This file contains hidden or 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: Deploy to GitHub Pages | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| build: | |
| name: Build Docusaurus | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Record job start time | |
| run: echo "JOB_STARTED_AT=$(date -u +%Y-%m-%dT%H:%M:%SZ)" >> "$GITHUB_ENV" | |
| # - name: Notify Lark (started) | |
| # continue-on-error: true | |
| # env: | |
| # LARK_DEPLOY_WEBHOOK_URL: ${{ secrets.LARK_DEPLOY_WEBHOOK_URL }} | |
| # LARK_DEPLOY_WEBHOOK_SECRET: ${{ secrets.LARK_DEPLOY_WEBHOOK_SECRET }} | |
| # JOB_NAME: Build Docusaurus | |
| # COMMIT_SHORT_SHA: ${{ github.sha }} | |
| # COMMIT_AUTHOR: ${{ github.actor }} | |
| # JOB_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} | |
| # run: | | |
| # COMMIT_SHORT_SHA="${COMMIT_SHORT_SHA:0:8}" \ | |
| # sh .github/scripts/notify-lark.sh started | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 21.7.3 | |
| cache: npm | |
| cache-dependency-path: www/package-lock.json | |
| - name: Install dependencies | |
| run: cd www && npm ci | |
| - name: Build website | |
| run: cd www && npm run build | |
| - name: Upload Build Artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: www/build | |
| - name: Notify Lark (success) | |
| if: success() | |
| continue-on-error: true | |
| env: | |
| LARK_DEPLOY_WEBHOOK_URL: ${{ secrets.LARK_DEPLOY_WEBHOOK_URL }} | |
| LARK_DEPLOY_WEBHOOK_SECRET: ${{ secrets.LARK_DEPLOY_WEBHOOK_SECRET }} | |
| JOB_NAME: Build Docusaurus | |
| COMMIT_SHORT_SHA: ${{ github.sha }} | |
| COMMIT_AUTHOR: ${{ github.actor }} | |
| JOB_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} | |
| run: COMMIT_SHORT_SHA="${COMMIT_SHORT_SHA:0:8}" sh .github/scripts/notify-lark.sh success | |
| - name: Notify Lark (failure) | |
| if: failure() | |
| continue-on-error: true | |
| env: | |
| LARK_DEPLOY_WEBHOOK_URL: ${{ secrets.LARK_DEPLOY_WEBHOOK_URL }} | |
| LARK_DEPLOY_WEBHOOK_SECRET: ${{ secrets.LARK_DEPLOY_WEBHOOK_SECRET }} | |
| JOB_NAME: Build Docusaurus | |
| COMMIT_SHORT_SHA: ${{ github.sha }} | |
| COMMIT_AUTHOR: ${{ github.actor }} | |
| JOB_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} | |
| run: | | |
| JOB_STARTED_AT="${JOB_STARTED_AT:-$(date -u +%Y-%m-%dT%H:%M:%SZ)}" | |
| COMMIT_SHORT_SHA="${COMMIT_SHORT_SHA:0:8}" sh .github/scripts/notify-lark.sh failed | |
| deploy: | |
| name: Deploy to GitHub Pages | |
| needs: build | |
| # Grant GITHUB_TOKEN the permissions required to make a Pages deployment | |
| permissions: | |
| pages: write # to deploy to Pages | |
| id-token: write # to verify the deployment originates from an appropriate source | |
| # Deploy to the github-pages environment | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Record job start time | |
| run: echo "JOB_STARTED_AT=$(date -u +%Y-%m-%dT%H:%M:%SZ)" >> "$GITHUB_ENV" | |
| # - name: Notify Lark (started) | |
| # continue-on-error: true | |
| # env: | |
| # LARK_DEPLOY_WEBHOOK_URL: ${{ secrets.LARK_DEPLOY_WEBHOOK_URL }} | |
| # LARK_DEPLOY_WEBHOOK_SECRET: ${{ secrets.LARK_DEPLOY_WEBHOOK_SECRET }} | |
| # JOB_NAME: Deploy to GitHub Pages | |
| # COMMIT_SHORT_SHA: ${{ github.sha }} | |
| # COMMIT_AUTHOR: ${{ github.actor }} | |
| # JOB_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} | |
| # run: | | |
| # COMMIT_SHORT_SHA="${COMMIT_SHORT_SHA:0:8}" \ | |
| # sh .github/scripts/notify-lark.sh started | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 | |
| - name: Notify Lark (success) | |
| if: success() | |
| continue-on-error: true | |
| env: | |
| LARK_DEPLOY_WEBHOOK_URL: ${{ secrets.LARK_DEPLOY_WEBHOOK_URL }} | |
| LARK_DEPLOY_WEBHOOK_SECRET: ${{ secrets.LARK_DEPLOY_WEBHOOK_SECRET }} | |
| JOB_NAME: Deploy to GitHub Pages | |
| COMMIT_SHORT_SHA: ${{ github.sha }} | |
| COMMIT_AUTHOR: ${{ github.actor }} | |
| JOB_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} | |
| run: COMMIT_SHORT_SHA="${COMMIT_SHORT_SHA:0:8}" sh .github/scripts/notify-lark.sh success | |
| - name: Notify Lark (failure) | |
| if: failure() | |
| continue-on-error: true | |
| env: | |
| LARK_DEPLOY_WEBHOOK_URL: ${{ secrets.LARK_DEPLOY_WEBHOOK_URL }} | |
| LARK_DEPLOY_WEBHOOK_SECRET: ${{ secrets.LARK_DEPLOY_WEBHOOK_SECRET }} | |
| JOB_NAME: Deploy to GitHub Pages | |
| COMMIT_SHORT_SHA: ${{ github.sha }} | |
| COMMIT_AUTHOR: ${{ github.actor }} | |
| JOB_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} | |
| run: | | |
| JOB_STARTED_AT="${JOB_STARTED_AT:-$(date -u +%Y-%m-%dT%H:%M:%SZ)}" | |
| COMMIT_SHORT_SHA="${COMMIT_SHORT_SHA:0:8}" sh .github/scripts/notify-lark.sh failed |