From f037cb2f69dd2f7b436e7b2e0e0fb5bc3c5abdea Mon Sep 17 00:00:00 2001 From: Edoardo Rosa <6991986+notdodo@users.noreply.github.com> Date: Sat, 25 Nov 2023 16:03:26 +0100 Subject: [PATCH] chore: disable unused workflows --- .github/workflows/build.yml | 90 ++++++++-------- .github/workflows/firebase-preview.yml | 62 +++++------ .github/workflows/firebase-production.yml | 64 ++++++------ .github/workflows/pages.yml | 122 +++++++++++----------- .github/workflows/test.yml | 42 ++++---- 5 files changed, 190 insertions(+), 190 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9bbec18d..2cc74f0d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,47 +1,47 @@ -name: Build Theme +# name: Build Theme -on: [pull_request_target] +# on: [pull_request_target] -jobs: - build: - runs-on: ubuntu-latest - if: ${{ github.actor == 'dependabot[bot]' }} - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - ref: "${{ github.head_ref }}" - - name: Install dependencies and Build Theme - uses: actions/setup-node@v4 - - run: npm install - - run: npm run assets - - name: Commit and push Chart.js changes - uses: stefanzweifel/git-auto-commit-action@v5 - with: - branch: "${{ github.head_ref }}" - push_options: "--dry-run" - file_pattern: "assets/lib/chart/*" - commit_message: "📦 Update packaged ChartJS" - - name: Commit Fuse changes - uses: stefanzweifel/git-auto-commit-action@v5 - with: - branch: "${{ github.head_ref }}" - push_options: "--dry-run" - file_pattern: "assets/lib/fuse/*" - commit_message: "📦 Update packaged FuseJS" - - name: Commit KaTeX changes - uses: stefanzweifel/git-auto-commit-action@v5 - with: - branch: "${{ github.head_ref }}" - push_options: "--dry-run" - file_pattern: "assets/lib/katex/*" - commit_message: "📦 Update packaged KaTeX" - - run: npm run build - - name: Commit CSS changes - uses: stefanzweifel/git-auto-commit-action@v5 - with: - branch: "${{ github.head_ref }}" - push_options: "--dry-run" - file_pattern: "assets/css/compiled/main.css" - commit_message: "💄 Rebuild CSS" - - run: git push \ No newline at end of file +# jobs: +# build: +# runs-on: ubuntu-latest +# if: ${{ github.actor == 'dependabot[bot]' }} +# steps: +# - name: Checkout +# uses: actions/checkout@v4 +# with: +# ref: "${{ github.head_ref }}" +# - name: Install dependencies and Build Theme +# uses: actions/setup-node@v4 +# - run: npm install +# - run: npm run assets +# - name: Commit and push Chart.js changes +# uses: stefanzweifel/git-auto-commit-action@v5 +# with: +# branch: "${{ github.head_ref }}" +# push_options: "--dry-run" +# file_pattern: "assets/lib/chart/*" +# commit_message: "📦 Update packaged ChartJS" +# - name: Commit Fuse changes +# uses: stefanzweifel/git-auto-commit-action@v5 +# with: +# branch: "${{ github.head_ref }}" +# push_options: "--dry-run" +# file_pattern: "assets/lib/fuse/*" +# commit_message: "📦 Update packaged FuseJS" +# - name: Commit KaTeX changes +# uses: stefanzweifel/git-auto-commit-action@v5 +# with: +# branch: "${{ github.head_ref }}" +# push_options: "--dry-run" +# file_pattern: "assets/lib/katex/*" +# commit_message: "📦 Update packaged KaTeX" +# - run: npm run build +# - name: Commit CSS changes +# uses: stefanzweifel/git-auto-commit-action@v5 +# with: +# branch: "${{ github.head_ref }}" +# push_options: "--dry-run" +# file_pattern: "assets/css/compiled/main.css" +# commit_message: "💄 Rebuild CSS" +# - run: git push \ No newline at end of file diff --git a/.github/workflows/firebase-preview.yml b/.github/workflows/firebase-preview.yml index 7b93c9c0..19641403 100644 --- a/.github/workflows/firebase-preview.yml +++ b/.github/workflows/firebase-preview.yml @@ -1,35 +1,35 @@ -name: Deploy Preview to Firebase -'on': pull_request -jobs: - build_and_preview: - if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}' - runs-on: ubuntu-latest - steps: +# name: Deploy Preview to Firebase +# 'on': pull_request +# jobs: +# build_and_preview: +# if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}' +# runs-on: ubuntu-latest +# steps: - - name: Hugo setup - uses: peaceiris/actions-hugo@v2.6.0 - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' +# - name: Hugo setup +# uses: peaceiris/actions-hugo@v2.6.0 +# env: +# ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' - - name: Check out code into the Go module directory - uses: actions/checkout@v4 - with: - submodules: true # Fetch Hugo themes (true OR recursive) - fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod +# - name: Check out code into the Go module directory +# uses: actions/checkout@v4 +# with: +# submodules: true # Fetch Hugo themes (true OR recursive) +# fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod - - name: Build with Hugo - env: - # For maximum backward compatibility with Hugo modules - HUGO_ENVIRONMENT: production - HUGO_ENV: production - run: | - hugo -E -F --minify -s exampleSite --themesDir ../.. -d ../public --baseURL https://blowfish.page +# - name: Build with Hugo +# env: +# # For maximum backward compatibility with Hugo modules +# HUGO_ENVIRONMENT: production +# HUGO_ENV: production +# run: | +# hugo -E -F --minify -s exampleSite --themesDir ../.. -d ../public --baseURL https://blowfish.page - - name: Deploy preview - uses: FirebaseExtended/action-hosting-deploy@v0 - with: - repoToken: '${{ secrets.GITHUB_TOKEN }}' - firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_BLOWFISH_21FFF }}' - expires: 30d - channelId: preview-${{ github.event.number }} - projectId: blowfish-21fff +# - name: Deploy preview +# uses: FirebaseExtended/action-hosting-deploy@v0 +# with: +# repoToken: '${{ secrets.GITHUB_TOKEN }}' +# firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_BLOWFISH_21FFF }}' +# expires: 30d +# channelId: preview-${{ github.event.number }} +# projectId: blowfish-21fff diff --git a/.github/workflows/firebase-production.yml b/.github/workflows/firebase-production.yml index 168369ec..afd824ff 100644 --- a/.github/workflows/firebase-production.yml +++ b/.github/workflows/firebase-production.yml @@ -1,36 +1,36 @@ -name: Deploy Production to Firebase -'on': - push: - branches: - - main -jobs: - build_and_deploy: - runs-on: ubuntu-latest - steps: +# name: Deploy Production to Firebase +# 'on': +# push: +# branches: +# - main +# jobs: +# build_and_deploy: +# runs-on: ubuntu-latest +# steps: - - name: Hugo setup - uses: peaceiris/actions-hugo@v2.6.0 - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' +# - name: Hugo setup +# uses: peaceiris/actions-hugo@v2.6.0 +# env: +# ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' - - name: Check out code into the Go module directory - uses: actions/checkout@v4 - with: - submodules: true # Fetch Hugo themes (true OR recursive) - fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod +# - name: Check out code into the Go module directory +# uses: actions/checkout@v4 +# with: +# submodules: true # Fetch Hugo themes (true OR recursive) +# fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod - - name: Build with Hugo - env: - # For maximum backward compatibility with Hugo modules - HUGO_ENVIRONMENT: production - HUGO_ENV: production - run: | - hugo -E -F --minify -s exampleSite --themesDir ../.. -d ../public --baseURL https://blowfish.page +# - name: Build with Hugo +# env: +# # For maximum backward compatibility with Hugo modules +# HUGO_ENVIRONMENT: production +# HUGO_ENV: production +# run: | +# hugo -E -F --minify -s exampleSite --themesDir ../.. -d ../public --baseURL https://blowfish.page - - name: Deploy Production - uses: FirebaseExtended/action-hosting-deploy@v0 - with: - repoToken: '${{ secrets.GITHUB_TOKEN }}' - firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_BLOWFISH_21FFF }}' - channelId: live - projectId: blowfish-21fff \ No newline at end of file +# - name: Deploy Production +# uses: FirebaseExtended/action-hosting-deploy@v0 +# with: +# repoToken: '${{ secrets.GITHUB_TOKEN }}' +# firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_BLOWFISH_21FFF }}' +# channelId: live +# projectId: blowfish-21fff \ No newline at end of file diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 6ec702d6..e2a8a4aa 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -1,68 +1,68 @@ -# Sample workflow for building and deploying a Hugo site to GitHub Pages -name: Blowfish Docs Deploy +# # Sample workflow for building and deploying a Hugo site to GitHub Pages +# name: Blowfish Docs Deploy -on: - # Runs on pushes targeting the default branch - push: - branches: ["main"] +# on: +# # Runs on pushes targeting the default branch +# push: +# branches: ["main"] - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: +# # Allows you to run this workflow manually from the Actions tab +# workflow_dispatch: -# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages -permissions: - contents: read - pages: write - id-token: write +# # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +# permissions: +# contents: read +# pages: write +# id-token: write -# Allow one concurrent deployment -concurrency: - group: "pages" - cancel-in-progress: true +# # Allow one concurrent deployment +# concurrency: +# group: "pages" +# cancel-in-progress: true -# Default to bash -defaults: - run: - shell: bash +# # Default to bash +# defaults: +# run: +# shell: bash -jobs: - # Build job - build: - runs-on: ubuntu-latest - env: - HUGO_VERSION: 0.102.3 - steps: - - name: Install Hugo CLI - run: | - 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 - - name: Checkout - uses: actions/checkout@v4 - with: - submodules: recursive - - name: Setup Pages - id: pages - uses: actions/configure-pages@v3 - - name: Build with Hugo - env: - # For maximum backward compatibility with Hugo modules - HUGO_ENVIRONMENT: production - HUGO_ENV: production - run: | - hugo --minify -s exampleSite --themesDir ../.. -d ../docs --baseURL https://nunocoracao.github.io/blowfish/ - - name: Upload artifact - uses: actions/upload-pages-artifact@v2 - with: - path: ./docs +# jobs: +# # Build job +# build: +# runs-on: ubuntu-latest +# env: +# HUGO_VERSION: 0.102.3 +# steps: +# - name: Install Hugo CLI +# run: | +# 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 +# - name: Checkout +# uses: actions/checkout@v4 +# with: +# submodules: recursive +# - name: Setup Pages +# id: pages +# uses: actions/configure-pages@v3 +# - name: Build with Hugo +# env: +# # For maximum backward compatibility with Hugo modules +# HUGO_ENVIRONMENT: production +# HUGO_ENV: production +# run: | +# hugo --minify -s exampleSite --themesDir ../.. -d ../docs --baseURL https://nunocoracao.github.io/blowfish/ +# - name: Upload artifact +# uses: actions/upload-pages-artifact@v2 +# with: +# path: ./docs - # Deployment job - deploy: - environment: - name: github-pages - url: https://nunocoracao.github.io/blowfish/ - runs-on: ubuntu-latest - needs: build - steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v2 +# # Deployment job +# deploy: +# environment: +# name: github-pages +# url: https://nunocoracao.github.io/blowfish/ +# runs-on: ubuntu-latest +# needs: build +# steps: +# - name: Deploy to GitHub Pages +# id: deployment +# uses: actions/deploy-pages@v2 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 14cdafe0..750a77c3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,25 +1,25 @@ -name: Test Build +# name: Test Build -on: [push] +# on: [push] -jobs: - build: - name: Build Example Site - runs-on: ubuntu-latest - concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - submodules: true - fetch-depth: 0 +# jobs: +# build: +# name: Build Example Site +# runs-on: ubuntu-latest +# concurrency: +# group: ${{ github.workflow }}-${{ github.ref }} +# steps: +# - name: Checkout +# uses: actions/checkout@v4 +# with: +# submodules: true +# fetch-depth: 0 - - name: Setup Hugo - uses: peaceiris/actions-hugo@v2.6.0 - with: - hugo-version: "latest" +# - name: Setup Hugo +# uses: peaceiris/actions-hugo@v2.6.0 +# with: +# hugo-version: "latest" - - name: Build - working-directory: ./exampleSite - run: hugo --minify --themesDir ../.. --baseURL https://nunocoracao.github.io/blowfish/ \ No newline at end of file +# - name: Build +# working-directory: ./exampleSite +# run: hugo --minify --themesDir ../.. --baseURL https://nunocoracao.github.io/blowfish/ \ No newline at end of file