From f51510865f26c1adfa2209165d68d72c7921f476 Mon Sep 17 00:00:00 2001 From: Kristof Van Der Haeghen Date: Mon, 19 Feb 2024 15:59:01 +0100 Subject: [PATCH 1/3] Truing to get github pages working on this repository. --- .github/workflows/github-action-pages.yml | 56 +++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 .github/workflows/github-action-pages.yml diff --git a/.github/workflows/github-action-pages.yml b/.github/workflows/github-action-pages.yml new file mode 100644 index 0000000..b8eacf5 --- /dev/null +++ b/.github/workflows/github-action-pages.yml @@ -0,0 +1,56 @@ +name: Build & Deploy + +on: + push: + branches: + - master + - main + - feature/pixi-v8 + workflow_dispatch: + inputs: + logLevel: + description: 'Log level' + required: true + default: 'warning' + type: choice + options: + - info + - warning + - debug + +jobs: + # Build job + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Install packages + run: yarn install + - name: Build javascript + run: yarn build:prod + - name: Setup Pages + id: pages + uses: actions/configure-pages@v4 + - name: Build with Jekyll + uses: actions/jekyll-build-pages@v1 + with: + source: ./build/prod + destination: ./_site + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + + # Deployment job + deploy: + permissions: + contents: read + pages: write + id-token: write + environment: + name: github-pages + url: ${{steps.deployment.outputs.page_url}} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 From cea0ca12d8359d28d69c3a3f4a9dfa1de001cd5e Mon Sep 17 00:00:00 2001 From: Kristof Van Der Haeghen Date: Mon, 19 Feb 2024 16:03:36 +0100 Subject: [PATCH 2/3] Fixing node and yarn issues for Github Pages. --- .github/workflows/github-action-pages.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/github-action-pages.yml b/.github/workflows/github-action-pages.yml index b8eacf5..433f352 100644 --- a/.github/workflows/github-action-pages.yml +++ b/.github/workflows/github-action-pages.yml @@ -24,6 +24,15 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20 + - run: corepack enable + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: yarn + - run: yarn install --immutable - name: Install packages run: yarn install - name: Build javascript From a01a943a3abeb4115235ae119dd377961ff400b5 Mon Sep 17 00:00:00 2001 From: Kristof Van Der Haeghen Date: Mon, 19 Feb 2024 16:09:25 +0100 Subject: [PATCH 3/3] Fixing issues and duplicates for Github Pages. --- .github/workflows/github-action-pages.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/github-action-pages.yml b/.github/workflows/github-action-pages.yml index 433f352..d46683d 100644 --- a/.github/workflows/github-action-pages.yml +++ b/.github/workflows/github-action-pages.yml @@ -32,9 +32,8 @@ jobs: with: node-version: 20 cache: yarn - - run: yarn install --immutable - name: Install packages - run: yarn install + run: yarn install --immutable - name: Build javascript run: yarn build:prod - name: Setup Pages @@ -43,7 +42,7 @@ jobs: - name: Build with Jekyll uses: actions/jekyll-build-pages@v1 with: - source: ./build/prod + source: ./dist/prod destination: ./_site - name: Upload artifact uses: actions/upload-pages-artifact@v3