From bd938c83e382c31698310bc02a38bb9250775885 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mos=C3=A8=20Giordano?= Date: Wed, 19 Jun 2024 11:40:55 -0400 Subject: [PATCH] Update CI setup --- .github/dependabot.yml | 7 +++++++ .github/workflows/Deploy.yml | 16 +++------------- .github/workflows/PreviewCleanup.yml | 2 +- 3 files changed, 11 insertions(+), 14 deletions(-) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..700707c --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,7 @@ +# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" # Location of package manifests + schedule: + interval: "weekly" diff --git a/.github/workflows/Deploy.yml b/.github/workflows/Deploy.yml index f6f4f48..e410c1f 100644 --- a/.github/workflows/Deploy.yml +++ b/.github/workflows/Deploy.yml @@ -49,12 +49,10 @@ jobs: runs-on: ubuntu-latest permissions: write-all steps: - - uses: actions/checkout@v3 - - uses: julia-actions/cache@v1 - - uses: tlienart/xranklin-build-action@v3.8 + - uses: actions/checkout@v4 + - uses: julia-actions/cache@v2 + - uses: tlienart/xranklin-build-action@v5.0.1 with: - # NOTE: this is the Xranklin branch the site is built with - BRANCH: "dev" # NOTE: this is the base URL prefix (landing page at /$BASE_URL_PREFIX/) BASE_URL_PREFIX: "" # Whether to deploy the website or not. Can do only for PRs opened @@ -62,11 +60,3 @@ jobs: DEPLOY: ${{ needs.options.outputs.deploy }} # Directory where to deploy the website. PREVIEW: ${{ needs.options.outputs.preview }} - - # =================================================================== - # DON'T CHANGE THE FOLLOWING UNLESS YOU HAVE GOOD REASONS TO - # >> amounts to build(clear=true) when commit message contains [clear] - CLEAR_CACHE: ${{ contains(github.event.head_commit.message, '[clear]') }} - # >> change the digit at the end if, for some reason, you believe - # that the cache used by the github action has an issue - CACHE_KEY: "franklin-cache" diff --git a/.github/workflows/PreviewCleanup.yml b/.github/workflows/PreviewCleanup.yml index b102a48..8f7aaf6 100644 --- a/.github/workflows/PreviewCleanup.yml +++ b/.github/workflows/PreviewCleanup.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout gh-pages branch - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: gh-pages - name: Delete preview and history + push changes