diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/deploy.yml similarity index 55% rename from .github/workflows/gh-pages.yml rename to .github/workflows/deploy.yml index 092dfca..5255203 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/deploy.yml @@ -1,21 +1,22 @@ -name: public-build +name: Deploy to GitHub Pages on: push: - branches: [main, setup] + branches: + - main + - setup workflow_dispatch: jobs: build: runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: ref: 'main' fetch-depth: 0 - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: ref: 'setup' fetch-depth: 0 @@ -25,31 +26,44 @@ jobs: run: cp -r _setup/* . - name: Setup Node.js - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: - node-version: '16' + node-version: '20' - name: Cache dependencies - uses: actions/cache@v2 + uses: actions/cache@v4 id: npm-cache with: path: ~/.npm key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} restore-keys: | ${{ runner.os }}-node- + - name: Install dependencies run: npm ci - name: Build public view run: npm run build - - name: Deploy to GitHub Pages - uses: crazy-max/ghaction-github-pages@v2 + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 with: - target_branch: gh-pages - build_dir: dist - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + path: ./dist + + deploy: + needs: build + permissions: + pages: write + id-token: write + + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 permissions: contents: write diff --git a/README.markdown b/README.markdown index 60b893d..7f4c07e 100644 --- a/README.markdown +++ b/README.markdown @@ -53,9 +53,10 @@ TaxonPages software is in active development and changes are expected that will 1. Click on "Fork" button to create your own repository from this. 2. Uncheck `Copy the setup branch only` and press `Save` -3. After create your repo, go to `Settings > Pages`, on "Branch" select `gh-pages` and `/(root)`. Then press save -4. Open `router.yml` file and change `base_url` to the name of your repository. -5. After a couple of minutes, your public page should be available at `https://.github.io/` +3. After create your repo, go to `Settings > Pages`, on "Build and deployment - Source" select `GitHub Actions`. +4. Go to `Actions` tab and press `I understand my workflows, go ahead and enable them` button +5. Open `router.yml` file and change `base_url` to the name of your repository. +6. After a couple of minutes, your public page should be available at `https://.github.io/` ### Setup diff --git a/package.json b/package.json index 99df9ab..83a2eda 100644 --- a/package.json +++ b/package.json @@ -17,34 +17,35 @@ "dependencies": { "@geoman-io/leaflet-geoman-free": "^2.17.0", "@nuxt/devalue": "^2.0.2", - "@unhead/ssr": "^1.9.13", - "axios": "^1.7.2", - "glob": "^10.4.2", + "@sfgrp/distinguish": "^0.4.0", + "@unhead/ssr": "^1.11.10", + "axios": "^1.7.7", + "glob": "^11.0.0", "js-yaml": "^4.1.0", "leaflet": "^1.9.4", "leaflet.markercluster": "^1.5.3", - "markdown-it-anchor": "^9.0.1", - "pinia": "^2.1.7", - "unhead": "^1.9.13", + "markdown-it-anchor": "^9.2.0", + "pinia": "^2.2.4", + "unhead": "^1.11.10", "unplugin-vue-markdown": "^0.26.2", - "vue": "^3.4.29", - "vue-router": "^4.3.3" + "vue": "^3.5.12", + "vue-router": "^4.4.5" }, "devDependencies": { - "@tailwindcss/typography": "^0.5.13", - "@unhead/ssr": "^1.9.13", - "@vitejs/plugin-vue": "^5.0.5", - "autoprefixer": "^10.4.19", + "@tailwindcss/typography": "^0.5.15", + "@unhead/ssr": "^1.11.10", + "@vitejs/plugin-vue": "^5.1.4", + "autoprefixer": "^10.4.20", "compression": "^1.7.4", - "eslint": "^9.5.0", - "eslint-plugin-vue": "^9.26.0", - "express": "^4.19.2", + "eslint": "^9.13.0", + "eslint-plugin-vue": "^9.29.1", + "express": "^4.21.1", "minimist": "^1.2.8", - "postcss": "^8.4.38", - "sass": "^1.77.6", - "tailwindcss": "^3.4.4", - "vite": "^5.3.1", - "vite-plugin-pages": "^0.32.2", + "postcss": "^8.4.47", + "sass": "^1.80.4", + "tailwindcss": "^3.4.14", + "vite": "^5.4.10", + "vite-plugin-pages": "^0.32.3", "vite-plugin-radar": "^0.9.6" } } diff --git a/src/components/Pagination/VPagination.global.vue b/src/components/Pagination/VPagination.global.vue index a5565dc..19c487a 100644 --- a/src/components/Pagination/VPagination.global.vue +++ b/src/components/Pagination/VPagination.global.vue @@ -7,7 +7,7 @@