From 5eb469bc3bd373ef8abb0574abd493a81cf4e484 Mon Sep 17 00:00:00 2001 From: Doug Aitken Date: Thu, 12 Oct 2023 01:07:09 +0100 Subject: [PATCH] redo some config files --- .github/dependabot.yml | 8 ++ .github/workflows/codeql.yml | 82 ------------------- .../{jekyll-gh-pages.yml => jekyll.yml} | 25 ++++-- .gitignore | 19 ++++- Gemfile | 4 +- _config.yml | 2 +- 6 files changed, 45 insertions(+), 95 deletions(-) create mode 100644 .github/dependabot.yml delete mode 100644 .github/workflows/codeql.yml rename .github/workflows/{jekyll-gh-pages.yml => jekyll.yml} (56%) diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..338d6cbc --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,8 @@ +version: 2 +updates: + - package-ecosystem: bundler + directory: / + schedule: + interval: daily + allow: + - dependency-type: direct \ No newline at end of file diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml deleted file mode 100644 index 69531a05..00000000 --- a/.github/workflows/codeql.yml +++ /dev/null @@ -1,82 +0,0 @@ -# For most projects, this workflow file will not need changing; you simply need -# to commit it to your repository. -# -# You may wish to alter this file to override the set of languages analyzed, -# or to provide custom queries or build logic. -# -# ******** NOTE ******** -# We have attempted to detect the languages in your repository. Please check -# the `language` matrix defined below to confirm you have the correct set of -# supported CodeQL languages. -# -name: "CodeQL" - -on: - push: - branches: [ "main" ] - pull_request: - # The branches below must be a subset of the branches above - branches: [ "main" ] - schedule: - - cron: '43 1 * * 0' - -jobs: - analyze: - name: Analyze - # Runner size impacts CodeQL analysis time. To learn more, please see: - # - https://gh.io/recommended-hardware-resources-for-running-codeql - # - https://gh.io/supported-runners-and-hardware-resources - # - https://gh.io/using-larger-runners - # Consider using larger runners for possible analysis time improvements. - runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }} - timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }} - permissions: - actions: read - contents: read - security-events: write - - strategy: - fail-fast: false - matrix: - language: [ 'javascript' ] - # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby', 'swift' ] - # Use only 'java' to analyze code written in Java, Kotlin or both - # Use only 'javascript' to analyze code written in JavaScript, TypeScript or both - # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support - - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@v2 - with: - languages: ${{ matrix.language }} - # If you wish to specify custom queries, you can do so here or in a config file. - # By default, queries listed here will override any specified in a config file. - # Prefix the list here with "+" to use these queries and those in the config file. - - # For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs - # queries: security-extended,security-and-quality - - - # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift). - # If this step fails, then you should remove it and run the build manually (see below) - - name: Autobuild - uses: github/codeql-action/autobuild@v2 - - # ℹī¸ Command-line programs to run using the OS shell. - # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun - - # If the Autobuild fails above, remove it and uncomment the following three lines. - # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. - - # - run: | - # echo "Run, Build Application using script" - # ./location_of_script_within_repo/buildscript.sh - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 - with: - category: "/language:${{matrix.language}}" diff --git a/.github/workflows/jekyll-gh-pages.yml b/.github/workflows/jekyll.yml similarity index 56% rename from .github/workflows/jekyll-gh-pages.yml rename to .github/workflows/jekyll.yml index 559bddf5..8858cea6 100644 --- a/.github/workflows/jekyll-gh-pages.yml +++ b/.github/workflows/jekyll.yml @@ -1,5 +1,10 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + # Sample workflow for building and deploying a Jekyll site to GitHub Pages -name: Deploy Jekyll with GitHub Pages dependencies preinstalled +name: Deploy Jekyll site to Pages on: # Runs on pushes targeting the default branch @@ -28,14 +33,22 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + - name: Setup Ruby + uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0 + with: + ruby-version: '3.1' # Not needed with a .ruby-version file + bundler-cache: true # runs 'bundle install' and caches installed gems automatically + cache-version: 0 # Increment this number if you need to re-download cached gems - name: Setup Pages + id: pages uses: actions/configure-pages@v3 - name: Build with Jekyll - uses: actions/jekyll-build-pages@v1 - with: - source: ./ - destination: ./_site + # Outputs to the './_site' directory by default + run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}" + env: + JEKYLL_ENV: production - name: Upload artifact + # Automatically uploads an artifact from the './_site' directory by default uses: actions/upload-pages-artifact@v2 # Deployment job @@ -48,4 +61,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v2 + uses: actions/deploy-pages@v2 \ No newline at end of file diff --git a/.gitignore b/.gitignore index 9aaf1cc0..e912e1df 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,16 @@ -/node_modules/ -/site/build/ - # Jetbrains IDEs -.idea \ No newline at end of file +.idea + +# Copied from https://github.com/github/gitignore/blob/main/Jekyll.gitignore +# Ignore metadata generated by Jekyll +_site/ +.sass-cache/ +.jekyll-cache/ +.jekyll-metadata + +# Ignore folders generated by Bundler +.bundle/ +vendor/ + +/node_modules/ +/site/build/ \ No newline at end of file diff --git a/Gemfile b/Gemfile index b26c315e..58ff0c3b 100644 --- a/Gemfile +++ b/Gemfile @@ -3,5 +3,5 @@ source 'https://rubygems.org' gem "jekyll", "~> 4.3.2" # installed by `gem jekyll` # gem "webrick" # required when using Ruby >= 3 and Jekyll <= 4.2.2 -# gem "just-the-docs", "0.6.2" # pinned to the current release -gem "just-the-docs" # always download the latest release +gem "just-the-docs", "0.6.2" # pinned to the current release +# gem "just-the-docs" # always download the latest release diff --git a/_config.yml b/_config.yml index 1c78d4fa..cbec54ba 100644 --- a/_config.yml +++ b/_config.yml @@ -16,7 +16,7 @@ title: Remote in Tech description: A list of semi to fully remote-friendly companies in tech baseurl: "" # the subpath of your site, e.g. /blog -url: "https://remoteintech.company" # the base hostname & protocol for your site, e.g. http://example.com +url: "https://remoteintech.github.io/remote-jobs/" # the base hostname & protocol for your site, e.g. http://example.com repository: remoteintech/remote-jobs # for github-metadata permalink: pretty