chore: disable unused workflows

This commit is contained in:
Edoardo Rosa 2023-11-25 16:03:26 +01:00
parent 6c02970a22
commit f037cb2f69
No known key found for this signature in database
GPG key ID: 2AF1937D15CB28F6
5 changed files with 190 additions and 190 deletions

View file

@ -1,47 +1,47 @@
name: Build Theme # name: Build Theme
on: [pull_request_target] # on: [pull_request_target]
jobs: # jobs:
build: # build:
runs-on: ubuntu-latest # runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }} # if: ${{ github.actor == 'dependabot[bot]' }}
steps: # steps:
- name: Checkout # - name: Checkout
uses: actions/checkout@v4 # uses: actions/checkout@v4
with: # with:
ref: "${{ github.head_ref }}" # ref: "${{ github.head_ref }}"
- name: Install dependencies and Build Theme # - name: Install dependencies and Build Theme
uses: actions/setup-node@v4 # uses: actions/setup-node@v4
- run: npm install # - run: npm install
- run: npm run assets # - run: npm run assets
- name: Commit and push Chart.js changes # - name: Commit and push Chart.js changes
uses: stefanzweifel/git-auto-commit-action@v5 # uses: stefanzweifel/git-auto-commit-action@v5
with: # with:
branch: "${{ github.head_ref }}" # branch: "${{ github.head_ref }}"
push_options: "--dry-run" # push_options: "--dry-run"
file_pattern: "assets/lib/chart/*" # file_pattern: "assets/lib/chart/*"
commit_message: "📦 Update packaged ChartJS" # commit_message: "📦 Update packaged ChartJS"
- name: Commit Fuse changes # - name: Commit Fuse changes
uses: stefanzweifel/git-auto-commit-action@v5 # uses: stefanzweifel/git-auto-commit-action@v5
with: # with:
branch: "${{ github.head_ref }}" # branch: "${{ github.head_ref }}"
push_options: "--dry-run" # push_options: "--dry-run"
file_pattern: "assets/lib/fuse/*" # file_pattern: "assets/lib/fuse/*"
commit_message: "📦 Update packaged FuseJS" # commit_message: "📦 Update packaged FuseJS"
- name: Commit KaTeX changes # - name: Commit KaTeX changes
uses: stefanzweifel/git-auto-commit-action@v5 # uses: stefanzweifel/git-auto-commit-action@v5
with: # with:
branch: "${{ github.head_ref }}" # branch: "${{ github.head_ref }}"
push_options: "--dry-run" # push_options: "--dry-run"
file_pattern: "assets/lib/katex/*" # file_pattern: "assets/lib/katex/*"
commit_message: "📦 Update packaged KaTeX" # commit_message: "📦 Update packaged KaTeX"
- run: npm run build # - run: npm run build
- name: Commit CSS changes # - name: Commit CSS changes
uses: stefanzweifel/git-auto-commit-action@v5 # uses: stefanzweifel/git-auto-commit-action@v5
with: # with:
branch: "${{ github.head_ref }}" # branch: "${{ github.head_ref }}"
push_options: "--dry-run" # push_options: "--dry-run"
file_pattern: "assets/css/compiled/main.css" # file_pattern: "assets/css/compiled/main.css"
commit_message: "💄 Rebuild CSS" # commit_message: "💄 Rebuild CSS"
- run: git push # - run: git push

View file

@ -1,35 +1,35 @@
name: Deploy Preview to Firebase # name: Deploy Preview to Firebase
'on': pull_request # 'on': pull_request
jobs: # jobs:
build_and_preview: # build_and_preview:
if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}' # if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}'
runs-on: ubuntu-latest # runs-on: ubuntu-latest
steps: # steps:
- name: Hugo setup # - name: Hugo setup
uses: peaceiris/actions-hugo@v2.6.0 # uses: peaceiris/actions-hugo@v2.6.0
env: # env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' # ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
- name: Check out code into the Go module directory # - name: Check out code into the Go module directory
uses: actions/checkout@v4 # uses: actions/checkout@v4
with: # with:
submodules: true # Fetch Hugo themes (true OR recursive) # submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod # fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Build with Hugo # - name: Build with Hugo
env: # env:
# For maximum backward compatibility with Hugo modules # # For maximum backward compatibility with Hugo modules
HUGO_ENVIRONMENT: production # HUGO_ENVIRONMENT: production
HUGO_ENV: production # HUGO_ENV: production
run: | # run: |
hugo -E -F --minify -s exampleSite --themesDir ../.. -d ../public --baseURL https://blowfish.page # hugo -E -F --minify -s exampleSite --themesDir ../.. -d ../public --baseURL https://blowfish.page
- name: Deploy preview # - name: Deploy preview
uses: FirebaseExtended/action-hosting-deploy@v0 # uses: FirebaseExtended/action-hosting-deploy@v0
with: # with:
repoToken: '${{ secrets.GITHUB_TOKEN }}' # repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_BLOWFISH_21FFF }}' # firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_BLOWFISH_21FFF }}'
expires: 30d # expires: 30d
channelId: preview-${{ github.event.number }} # channelId: preview-${{ github.event.number }}
projectId: blowfish-21fff # projectId: blowfish-21fff

View file

@ -1,36 +1,36 @@
name: Deploy Production to Firebase # name: Deploy Production to Firebase
'on': # 'on':
push: # push:
branches: # branches:
- main # - main
jobs: # jobs:
build_and_deploy: # build_and_deploy:
runs-on: ubuntu-latest # runs-on: ubuntu-latest
steps: # steps:
- name: Hugo setup # - name: Hugo setup
uses: peaceiris/actions-hugo@v2.6.0 # uses: peaceiris/actions-hugo@v2.6.0
env: # env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' # ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
- name: Check out code into the Go module directory # - name: Check out code into the Go module directory
uses: actions/checkout@v4 # uses: actions/checkout@v4
with: # with:
submodules: true # Fetch Hugo themes (true OR recursive) # submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod # fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Build with Hugo # - name: Build with Hugo
env: # env:
# For maximum backward compatibility with Hugo modules # # For maximum backward compatibility with Hugo modules
HUGO_ENVIRONMENT: production # HUGO_ENVIRONMENT: production
HUGO_ENV: production # HUGO_ENV: production
run: | # run: |
hugo -E -F --minify -s exampleSite --themesDir ../.. -d ../public --baseURL https://blowfish.page # hugo -E -F --minify -s exampleSite --themesDir ../.. -d ../public --baseURL https://blowfish.page
- name: Deploy Production # - name: Deploy Production
uses: FirebaseExtended/action-hosting-deploy@v0 # uses: FirebaseExtended/action-hosting-deploy@v0
with: # with:
repoToken: '${{ secrets.GITHUB_TOKEN }}' # repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_BLOWFISH_21FFF }}' # firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_BLOWFISH_21FFF }}'
channelId: live # channelId: live
projectId: blowfish-21fff # projectId: blowfish-21fff

View file

@ -1,68 +1,68 @@
# Sample workflow for building and deploying a Hugo site to GitHub Pages # # Sample workflow for building and deploying a Hugo site to GitHub Pages
name: Blowfish Docs Deploy # name: Blowfish Docs Deploy
on: # on:
# Runs on pushes targeting the default branch # # Runs on pushes targeting the default branch
push: # push:
branches: ["main"] # branches: ["main"]
# Allows you to run this workflow manually from the Actions tab # # Allows you to run this workflow manually from the Actions tab
workflow_dispatch: # workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages # # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions: # permissions:
contents: read # contents: read
pages: write # pages: write
id-token: write # id-token: write
# Allow one concurrent deployment # # Allow one concurrent deployment
concurrency: # concurrency:
group: "pages" # group: "pages"
cancel-in-progress: true # cancel-in-progress: true
# Default to bash # # Default to bash
defaults: # defaults:
run: # run:
shell: bash # shell: bash
jobs: # jobs:
# Build job # # Build job
build: # build:
runs-on: ubuntu-latest # runs-on: ubuntu-latest
env: # env:
HUGO_VERSION: 0.102.3 # HUGO_VERSION: 0.102.3
steps: # steps:
- name: Install Hugo CLI # - name: Install Hugo CLI
run: | # run: |
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.deb \ # wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.deb \
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb # && sudo dpkg -i ${{ runner.temp }}/hugo.deb
- name: Checkout # - name: Checkout
uses: actions/checkout@v4 # uses: actions/checkout@v4
with: # with:
submodules: recursive # submodules: recursive
- name: Setup Pages # - name: Setup Pages
id: pages # id: pages
uses: actions/configure-pages@v3 # uses: actions/configure-pages@v3
- name: Build with Hugo # - name: Build with Hugo
env: # env:
# For maximum backward compatibility with Hugo modules # # For maximum backward compatibility with Hugo modules
HUGO_ENVIRONMENT: production # HUGO_ENVIRONMENT: production
HUGO_ENV: production # HUGO_ENV: production
run: | # run: |
hugo --minify -s exampleSite --themesDir ../.. -d ../docs --baseURL https://nunocoracao.github.io/blowfish/ # hugo --minify -s exampleSite --themesDir ../.. -d ../docs --baseURL https://nunocoracao.github.io/blowfish/
- name: Upload artifact # - name: Upload artifact
uses: actions/upload-pages-artifact@v2 # uses: actions/upload-pages-artifact@v2
with: # with:
path: ./docs # path: ./docs
# Deployment job # # Deployment job
deploy: # deploy:
environment: # environment:
name: github-pages # name: github-pages
url: https://nunocoracao.github.io/blowfish/ # url: https://nunocoracao.github.io/blowfish/
runs-on: ubuntu-latest # runs-on: ubuntu-latest
needs: build # needs: build
steps: # steps:
- name: Deploy to GitHub Pages # - name: Deploy to GitHub Pages
id: deployment # id: deployment
uses: actions/deploy-pages@v2 # uses: actions/deploy-pages@v2

View file

@ -1,25 +1,25 @@
name: Test Build # name: Test Build
on: [push] # on: [push]
jobs: # jobs:
build: # build:
name: Build Example Site # name: Build Example Site
runs-on: ubuntu-latest # runs-on: ubuntu-latest
concurrency: # concurrency:
group: ${{ github.workflow }}-${{ github.ref }} # group: ${{ github.workflow }}-${{ github.ref }}
steps: # steps:
- name: Checkout # - name: Checkout
uses: actions/checkout@v4 # uses: actions/checkout@v4
with: # with:
submodules: true # submodules: true
fetch-depth: 0 # fetch-depth: 0
- name: Setup Hugo # - name: Setup Hugo
uses: peaceiris/actions-hugo@v2.6.0 # uses: peaceiris/actions-hugo@v2.6.0
with: # with:
hugo-version: "latest" # hugo-version: "latest"
- name: Build # - name: Build
working-directory: ./exampleSite # working-directory: ./exampleSite
run: hugo --minify --themesDir ../.. --baseURL https://nunocoracao.github.io/blowfish/ # run: hugo --minify --themesDir ../.. --baseURL https://nunocoracao.github.io/blowfish/