From 7892d523b83c996f3dcc1a7466b2da9929e3d005 Mon Sep 17 00:00:00 2001 From: marcaufderheyde Date: Tue, 26 Mar 2024 21:25:52 +0100 Subject: [PATCH] Removed old actions --- .github/workflows/publish.yml | 51 ------------------------- .github/workflows/setup-node/action.yml | 40 ------------------- 2 files changed, 91 deletions(-) delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/setup-node/action.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index be162c4..0000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,51 +0,0 @@ -name: publish-to-github-pages -on: - push: - branches: - - master - -permissions: - contents: read - pages: write - id-token: write - -concurrency: - group: "pages" - cancel-in-progress: false - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - name: Checkout 🛎️ - uses: actions/checkout@v4 - - - name: Setup Node.js ⚙️ - Cache dependencies ⚡ - Install dependencies 🔧 - uses: ./.github/workflows/setup-node - - - name: Setup Pages ⚙️ - uses: actions/configure-pages@v4 - with: - static_site_generator: next - - - name: Build with Next.js 🏗️ - run: npx next build - - - name: Upload artifact 📡 - uses: actions/upload-pages-artifact@v3 - with: - path: ./out - - deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - - runs-on: ubuntu-latest - needs: build - - steps: - - name: Publish to GitHub Pages 🚀 - id: deployment - uses: actions/deploy-pages@v4 diff --git a/.github/workflows/setup-node/action.yml b/.github/workflows/setup-node/action.yml deleted file mode 100644 index 1c2e288..0000000 --- a/.github/workflows/setup-node/action.yml +++ /dev/null @@ -1,40 +0,0 @@ -# This is a basic workflow to help you get started with Actions - -name: CI - -# Controls when the workflow will run -on: - # Triggers the workflow on push or pull request events but only for the "main" branch - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -# A workflow run is made up of one or more jobs that can run sequentially or in parallel -jobs: - # This workflow contains a single job called "build" - build: - # The type of runner that the job will run on - runs-on: ubuntu-latest - - # Steps represent a sequence of tasks that will be executed as part of the job - steps: - - name: Setup Node.js ⚙️ - uses: actions/setup-node@v4 - with: - node-version: 20 - - - name: Cache dependencies ⚡ - id: cache_dependencies - uses: actions/cache@v3 - with: - path: node_modules - key: node-modules-${{ hashFiles('package-lock.json') }} - - - name: Install dependencies 🔧 - shell: bash - if: steps.cache_dependencies.outputs.cache-hit != 'true' - run: npm ci