Skip to content

Commit

Permalink
Improve/workflow (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
rvalitov authored Dec 18, 2024
1 parent 928c31e commit 255c164
Show file tree
Hide file tree
Showing 19 changed files with 7,508 additions and 3,498 deletions.
18 changes: 16 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,21 @@ updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
interval: "monthly"
ignore:
# No need to update the UIKit I guess
# No need to update the UIKit, I guess
- dependency-name: "uikit"
groups:
dev-dependencies:
patterns:
- "*"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
# Check for updates to GitHub Actions
interval: "monthly"
groups:
actions-deps:
patterns:
- "*"
41 changes: 0 additions & 41 deletions .github/workflows/build-test.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/codacy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
#actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
name: Codacy Security Scan
runs-on: ubuntu-latest
runs-on: ${{ vars.UBUNTU_VERSION }}
steps:
# Checkout the repository to the GitHub Actions runner
- name: Checkout code
Expand Down Expand Up @@ -55,7 +55,7 @@ jobs:

codacy-analysis-cli:
name: Codacy Analysis CLI
runs-on: ubuntu-latest
runs-on: ${{ vars.UBUNTU_VERSION }}
if: github.event_name == 'push'
steps:
- name: Checkout code
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ permissions:

jobs:
dependency-review:
runs-on: ubuntu-latest
runs-on: "${{ vars.UBUNTU_VERSION }}"
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v4
Expand Down
23 changes: 16 additions & 7 deletions .github/workflows/hugo.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Workflow for building and deploying a Hugo site to GitHub Pages
name: Deployment
name: Deploy

on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
branches: [ "main" ]

# Allows you to run this workflow manually from the Actions tab
# eslint-disable-next-line yml/no-empty-mapping-value
Expand All @@ -27,28 +27,37 @@ defaults:
run:
shell: bash

env:
HUGO_VERSION: 0.139.3
NODE_VERSION: 23.x

jobs:
# Build job
build:
runs-on: ubuntu-latest
env:
HUGO_VERSION: 0.108.0
runs-on: ${{ vars.UBUNTU_VERSION }}

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-amd64.deb \
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${{ env.HUGO_VERSION }}/hugo_extended_${{ env.HUGO_VERSION }}_linux-amd64.deb \
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
- name: Install Dart Sass Embedded
run: sudo snap install dart-sass-embedded
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'
- name: Setup Pages
id: pages
uses: actions/configure-pages@v5
- name: Install Node.js dependencies
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
- run: npm run build --if-present
- name: Build with Hugo
working-directory: ./src
env:
Expand All @@ -69,7 +78,7 @@ jobs:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
runs-on: ${{ vars.UBUNTU_VERSION }}
needs: build
steps:
- name: Deploy to GitHub Pages
Expand Down
87 changes: 0 additions & 87 deletions .github/workflows/lighthouse.yml

This file was deleted.

27 changes: 0 additions & 27 deletions .github/workflows/node.js.yml

This file was deleted.

Loading

0 comments on commit 255c164

Please sign in to comment.