From 57a0a7979660c33191af289f56f67177f7c346ca Mon Sep 17 00:00:00 2001 From: MedzikUser Date: Tue, 10 May 2022 16:09:25 +0200 Subject: [PATCH] ci: update --- .github/workflows/build-release-binaries.yml | 8 ++++---- .github/workflows/website.yml | 19 +++++++++++-------- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build-release-binaries.yml b/.github/workflows/build-release-binaries.yml index 77cf384..6848e3a 100644 --- a/.github/workflows/build-release-binaries.yml +++ b/.github/workflows/build-release-binaries.yml @@ -6,10 +6,10 @@ on: - '**' - '!website/**' - pull_request: - paths: - - '**' - - '!website/**' +# pull_request: +# paths: +# - '**' +# - '!website/**' workflow_dispatch: diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index 53671dd..bb3bb8f 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -5,17 +5,14 @@ on: branches: - main paths: - - website/** + - 'website/**' pull_request: paths: - - website/** + - 'website/**' workflow_dispatch: -env: - CARGO_TERM_COLOR: always - jobs: build: name: Next.js Build @@ -29,7 +26,7 @@ jobs: uses: actions/setup-node@v3 - name: Install pnpm - uses: pnpm/action-setup@v2.2.1 + uses: pnpm/action-setup@v2 id: pnpm-install with: version: 7 @@ -48,11 +45,11 @@ jobs: restore-keys: | ${{ runner.os }}-pnpm-store- - - name: Cache next.js + - name: Cache Next.js uses: actions/cache@v3 with: path: | - ${{ github.workspace }}/.next/cache + ${{ github.workspace }}/website/.next/cache key: ${{ runner.os }}-nextjs-${{ hashFiles('website/pnpm-lock.yaml') }}-${{ hashFiles('website/**.[jt]s', 'website/**.[jt]sx') }} restore-keys: | ${{ runner.os }}-nextjs-${{ hashFiles('website/pnpm-lock.yaml') }}- @@ -65,3 +62,9 @@ jobs: - name: Export page run: pnpm --prefix website run export + + - name: Upload artifact + uses: actions/upload-artifact@v3 + with: + name: website-static + path: website/out/**