Skip to content

Commit

Permalink
refactor: version and gh pages
Browse files Browse the repository at this point in the history
  • Loading branch information
dvgamerr committed Mar 1, 2024
1 parent 9cf5320 commit f6c7df0
Show file tree
Hide file tree
Showing 4 changed files with 425 additions and 489 deletions.
39 changes: 0 additions & 39 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

25 changes: 16 additions & 9 deletions .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,29 @@
name: github-pages

on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
pull_request:
# The branches below must be a subset of the branches above
branches: [main]
schedule:
- cron: '30 23 * * 0'

# 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

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
build:
name: Build NuxtJS
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
WK_TOKEN: ${{ secrets.WK_TOKEN }}
Expand All @@ -32,10 +37,13 @@ jobs:
with:
fetch-depth: 0

- name: Setup Pages
uses: actions/configure-pages@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "18"
node-version: "21"
cache: ${{ steps.detect-package-manager.outputs.manager }}

- uses: pnpm/action-setup@v3
Expand Down Expand Up @@ -71,12 +79,11 @@ jobs:

# Deployment job
deploy:
name: Deploy to GitHub Pages
if: github.event_name != 'pull_request'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,21 @@
},
"dependencies": {
"@cronitorio/cronitor-rum": "^0.4.1",
"astro": "^4.2.4",
"astro": "^4.4.6",
"astro-google-fonts-optimizer": "^0.2.2",
"astro-robots-txt": "^1.0.0",
"numeral": "^2.0.6",
"sharp": "^0.32.6"
},
"devDependencies": {
"@commitlint/cli": "^18.5.0",
"@commitlint/config-conventional": "^18.5.0",
"@commitlint/cli": "^18.6.1",
"@commitlint/config-conventional": "^18.6.2",
"@octokit/core": "^5.1.0",
"@touno-io/debuger": "^2.4.1",
"bootstrap": "^5.3.2",
"bootstrap": "^5.3.3",
"charts.css": "^1.1.0",
"dayjs": "^1.11.10",
"dotenv": "^16.4.0",
"sass": "^1.70.0"
"dotenv": "^16.4.5",
"sass": "^1.71.1"
}
}
Loading

0 comments on commit f6c7df0

Please sign in to comment.