diff --git a/.env b/.env deleted file mode 100644 index bad49b2..0000000 --- a/.env +++ /dev/null @@ -1,8 +0,0 @@ -# OpenWeatherMap API Key -# Get your free API key at: https://openweathermap.org/api -# Free tier includes 1,000 API calls per day -PUBLIC_OPENWEATHER_API_KEY=0938949580094b5d165c2e7cd23b7cf2 - -# Weather Location Configuration -PUBLIC_WEATHER_CITY=Rome -PUBLIC_WEATHER_COUNTRY_CODE=IT diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3ae16ff..5f3d059 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -22,6 +22,20 @@ jobs: with: version: 10 + - name: Get pnpm store directory + id: pnpm-cache + shell: bash + run: | + echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT + + - name: Setup pnpm cache + uses: actions/cache@v3 + with: + path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-pnpm-store- + - name: Install dependencies run: pnpm install --frozen-lockfile @@ -31,9 +45,6 @@ jobs: - name: Build run: pnpm build - - name: Install rsync - run: apt-get update -qq && apt-get install -y -qq rsync openssh-client > /dev/null 2>&1 - - name: Setup SSH key run: | mkdir -p ~/.ssh