From 1782bf4e929abb497dcb2fcf7ce2492261463016 Mon Sep 17 00:00:00 2001 From: Josep M Sobrepere Date: Mon, 28 Oct 2024 15:55:34 +0100 Subject: [PATCH] fish publish --- .github/workflows/CI.yml | 28 --------------- .github/workflows/{static.yml => publish.yml} | 36 +++++++++---------- 2 files changed, 17 insertions(+), 47 deletions(-) delete mode 100644 .github/workflows/CI.yml rename .github/workflows/{static.yml => publish.yml} (60%) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml deleted file mode 100644 index 1a5080b..0000000 --- a/.github/workflows/CI.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: Contango GUI CI - -on: - pull_request: - branches: [main] - push: - branches: [main] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 - with: - node-version: '16' - - run: npm ci - - - name: Lint - run: npm run lint - - - name: Tests - run: npm test - - - name: Build - run: npm run build diff --git a/.github/workflows/static.yml b/.github/workflows/publish.yml similarity index 60% rename from .github/workflows/static.yml rename to .github/workflows/publish.yml index 9ddccdb..54223ba 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/publish.yml @@ -4,20 +4,20 @@ name: Deploy static content to Pages on: # Runs on pushes targeting the default branch push: - branches: ['master'] - + branches: ["master"] # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: + workflow_dispatch: {} # Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages permissions: + actions: write contents: read pages: write id-token: write # Allow one concurrent deployment concurrency: - group: 'pages' + group: "pages" cancel-in-progress: true jobs: @@ -28,26 +28,24 @@ jobs: url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Set up Node - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v4 + - name: Setup Node.js 20 + uses: actions/setup-node@v4 with: - node-version: 18 - cache: 'npm' - - name: Install dependencies - run: npm install + node-version: 20 + cache: pnpm + - name: Install deps + run: pnpm install - name: Build - run: npm run build - env: - BASE_URL: https://w3f.github.io/validator-selection-tool/ + run: pnpm build - name: Setup Pages - uses: actions/configure-pages@v3 + uses: actions/configure-pages@v5 - name: Upload artifact - uses: actions/upload-pages-artifact@v1 + uses: actions/upload-pages-artifact@v3 with: # Upload dist repository - path: './dist' + path: "./dist" - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v1 + uses: actions/deploy-pages@v4