From c934b32b6f6702ad276fdfce08885b30fa80c665 Mon Sep 17 00:00:00 2001 From: EdwinBetanc0urt Date: Wed, 3 Dec 2025 18:49:39 -0400 Subject: [PATCH 1/3] feat: Update `GitHub` workflow actions. --- .github/workflows/build-and-package.yml | 6 +++--- .github/workflows/codeql-analysis.yml | 8 ++++---- .github/workflows/deploy.yml | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build-and-package.yml b/.github/workflows/build-and-package.yml index eb55f350..128dd8db 100644 --- a/.github/workflows/build-and-package.yml +++ b/.github/workflows/build-and-package.yml @@ -21,7 +21,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: true fetch-depth: 0 @@ -32,7 +32,7 @@ jobs: version: 9.1.1 - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v6 with: node-version: 20 cache: pnpm @@ -122,7 +122,7 @@ jobs: password: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }} - name: Build and push Nginx image - uses: docker/build-push-action@v5 + uses: docker/build-push-action@6 with: context: . push: true diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index c2e6b4b1..4243feb8 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -25,15 +25,15 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Initialize CodeQL - uses: github/codeql-action/init@v2 + uses: github/codeql-action/init@v3 with: languages: ${{ matrix.language }} - name: Autobuild - uses: github/codeql-action/autobuild@v2 + uses: github/codeql-action/autobuild@v3 - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + uses: github/codeql-action/analyze@v3 diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index cf38f875..7a590796 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: true fetch-depth: 0 @@ -22,7 +22,7 @@ jobs: version: 9.1.1 - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v6 with: node-version: 20 cache: pnpm From 30e77d8b9c2ca99de47740db2f339de1ce411dba Mon Sep 17 00:00:00 2001 From: EdwinBetanc0urt Date: Wed, 3 Dec 2025 18:57:30 -0400 Subject: [PATCH 2/3] add ci. --- .github/workflows/ci.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..84053848 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,37 @@ +name: Continuous Integration Blog + +on: + push: + branches: + - '*' # matches every branch that doesn't contain a '/' + - '*/*' # matches every branch containing a single '/' + - '**' # matches every branch + +jobs: + deploy-gh-pages: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + submodules: true + fetch-depth: 0 + + - name: Install pnpm + uses: pnpm/action-setup@v4 + with: + version: 9.1.1 + + - name: Setup Node.js + uses: actions/setup-node@v6 + with: + node-version: 20 + cache: pnpm + + - name: Install Deps + run: pnpm install --no-frozen-lockfile + + - name: Build Blog + env: + NODE_OPTIONS: --max_old_space_size=8192 + run: pnpm run build:webpack From 7b3bc2f4422f0ca4e739e620f1540212c58d8e89 Mon Sep 17 00:00:00 2001 From: EdwinBetanc0urt Date: Thu, 4 Dec 2025 10:34:24 -0400 Subject: [PATCH 3/3] fix brach name env. --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 84053848..47eb3ff5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,6 +10,9 @@ on: jobs: deploy-gh-pages: runs-on: ubuntu-latest + env: + BRANCH_NAME: ${{ github.ref_name }} + steps: - name: Checkout uses: actions/checkout@v4