From ade53b2f4cc58572779aed91d2450381dcbd847f Mon Sep 17 00:00:00 2001 From: Michael Brusegard <56915010+michaelbrusegard@users.noreply.github.com> Date: Tue, 24 Dec 2024 02:33:48 +0100 Subject: [PATCH] chore: remove old github workflows --- .github/dependabot.yml | 10 ------ .github/workflows/deploy.yml | 0 .github/workflows/email.yml | 36 ------------------- .github/workflows/nextjs.yml | 69 ------------------------------------ 4 files changed, 115 deletions(-) delete mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/deploy.yml delete mode 100644 .github/workflows/email.yml delete mode 100644 .github/workflows/nextjs.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 218a786..0000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,10 +0,0 @@ -version: 2 -updates: - - package-ecosystem: "npm" - directory: "/" - schedule: - interval: "monthly" - - package-ecosystem: "npm" - directory: "/email_function/" - schedule: - interval: "monthly" diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..e69de29 diff --git a/.github/workflows/email.yml b/.github/workflows/email.yml deleted file mode 100644 index d48a733..0000000 --- a/.github/workflows/email.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: Deploy Google Cloud Email Function - -on: - workflow_dispatch: - -permissions: - contents: "read" - id-token: "write" - -jobs: - Deploy: - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - - name: Authenticate with Google Cloud - uses: google-github-actions/auth@v1 - with: - credentials_json: ${{ secrets.GCP_GITHUB_SER_ACC_KEY }} - - - name: Setup Google Cloud SDK - uses: google-github-actions/setup-gcloud@v1 - - - name: Deploy Email function - run: | - gcloud functions deploy emailSender \ - --gen2 \ - --region=europe-north1 \ - --runtime=nodejs20 \ - --source=${{ github.workspace }}/email_function \ - --entry-point=sendEmail \ - --trigger-http \ - --project=${{ secrets.GCP_PROJECT_ID }} \ - --set-env-vars SENDING_EMAIL=${{ secrets.SENDING_EMAIL }},SENDING_PASS=${{ secrets.SENDING_PASS }},RECEIVING_EMAIL=${{ secrets.RECEIVING_EMAIL }},DOMAIN_URL=${{ secrets.DOMAIN_URL }} \ - --allow-unauthenticated diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml deleted file mode 100644 index 3bb7356..0000000 --- a/.github/workflows/nextjs.yml +++ /dev/null @@ -1,69 +0,0 @@ -name: Deploy Next.js site to Pages - -on: - push: - branches: - - main - - workflow_dispatch: - -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@v3 - - - name: Setup Node - uses: actions/setup-node@v3 - with: - node-version: "20" - cache: npm - - - name: Setup Pages - uses: actions/configure-pages@v3 - with: - static_site_generator: next - - - name: Restore cache - uses: actions/cache@v3 - with: - path: | - .next/cache - key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }} - restore-keys: | - ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}- - - - name: Install dependencies - run: npm ci - - - name: Build with Next.js - run: npx --no-install next build - - - name: Static HTML export with Next.js - run: npx --no-install next export - - - name: Upload artifact - uses: actions/upload-pages-artifact@v2 - with: - path: ./out - - deploy: - 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@v2