Mention backup tag changes #712
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: Build & Deploy | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
add-contributors: | |
runs-on: ubuntu-22.04 | |
if: github.ref == 'refs/heads/main' | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: BobAnkh/add-contributors@master | |
with: | |
REPO_NAME: 'saltyorg/docs' | |
CONTRIBUTOR: '### Contributors' | |
COLUMN_PER_ROW: '6' | |
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
IMG_WIDTH: '100' | |
FONT_SIZE: '14' | |
PATH: '/README.md' | |
COMMIT_MESSAGE: 'docs(README): update contributors' | |
AVATAR_SHAPE: 'square' | |
build: | |
runs-on: ubuntu-22.04 | |
if: github.event.repository.fork == false && github.event_name != 'pull_request' | |
outputs: | |
url: ${{ steps.cloudflare.outputs.url }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup Python 3 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Install wheel | |
run: pip install wheel | |
- name: Install mkdocs material insiders | |
run: pip install git+https://${{ secrets.GH_TOKEN }}@github.com/chazlarson/automaticSpoon.git | |
- name: Install apt packages | |
run: sudo apt-get install -y pngquant | |
- name: Install requirements.txt | |
run: pip install -r requirements.txt | |
- name: Build mkdocs | |
run: mkdocs build | |
- name: Publish to Cloudflare Pages | |
if: github.event.repository.fork == false | |
id: cloudflare | |
uses: cloudflare/[email protected] | |
with: | |
apiToken: ${{ secrets.CF_API_TOKEN }} | |
accountId: 86b9f680e99b6d172395cc7309a9d8a8 | |
projectName: docs | |
directory: site | |
gitHubToken: ${{ secrets.GH_TOKEN }} | |
webhook: | |
name: 'webhook' | |
runs-on: self-hosted | |
needs: build | |
if: always() && github.event_name != 'pull_request' && github.event.repository.fork == false | |
steps: | |
- uses: technote-space/workflow-conclusion-action@v3 | |
- name: Send Discord Notification | |
uses: sarisia/actions-status-discord@v1 | |
with: | |
webhook: ${{ secrets.DISCORD_WEBHOOK }} | |
description: "URL: ${{ needs.build.outputs.url }}" | |
status: ${{ env.WORKFLOW_CONCLUSION }} |