Skip to content

Commit

Permalink
primo aggiornamento
Browse files Browse the repository at this point in the history
  • Loading branch information
bbtgnn committed Mar 7, 2024
1 parent 27d5f73 commit a6f223c
Show file tree
Hide file tree
Showing 5 changed files with 4,577 additions and 2,752 deletions.
32 changes: 13 additions & 19 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,52 +2,46 @@ name: Deploy to GitHub Pages

on:
push:
branches: 'main'
branches:
- main

jobs:
build_site:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 8

# If you're using pnpm, add this step then change the commands and cache key below to use `pnpm`
# - name: Install pnpm
# uses: pnpm/action-setup@v3
# with:
# version: 8
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm

cache: npm
- name: Install dependencies
run: pnpm install

- name: build
run: npm install
- name: Build
env:
REPO_NAME: '/${{ github.event.repository.name }}'
BASE_PATH: '/${{ github.event.repository.name }}'
run: |
pnpm build
npm run build
- name: Upload Artifacts
uses: actions/upload-pages-artifact@v3
with:
path: 'docs/'
path: 'build/'

deploy:
needs: build_site
runs-on: ubuntu-latest

permissions:
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Deploy
id: deployment
Expand Down
Loading

0 comments on commit a6f223c

Please sign in to comment.