From 6521be31e65fad2b237cd9a1d8b47be9f0ab1e0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Z=C3=BCnd?= Date: Mon, 9 Dec 2024 13:59:18 +0100 Subject: [PATCH] Workflow: Auto-publish all branches to gh-pages (#149) --- .github/workflows/auto-publish.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto-publish.yml b/.github/workflows/auto-publish.yml index 734c2b4..3f63a06 100644 --- a/.github/workflows/auto-publish.yml +++ b/.github/workflows/auto-publish.yml @@ -2,7 +2,8 @@ name: CI on: pull_request: {} push: - branches: [main, '2024'] + branches-ignore: + - 'gh-pages' jobs: main: name: Build, Validate and Deploy @@ -14,4 +15,4 @@ jobs: GH_PAGES_BRANCH: gh-pages TOOLCHAIN: bikeshed SOURCE: source-map.bs - DESTINATION: ${{ github.ref == 'refs/heads/2024' && '2024/index.html' || 'index.html' }} + DESTINATION: ${{ github.ref_name == 'main' && 'index.html' || format('{0}/index.html', github.ref_name) }}