Skip to content

Commit

Permalink
Workflow: Auto-publish all branches to gh-pages (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
szuend authored Dec 9, 2024
1 parent 92aab42 commit 6521be3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/auto-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: CI
on:
pull_request: {}
push:
branches: [main, '2024']
branches-ignore:
- 'gh-pages'
jobs:
main:
name: Build, Validate and Deploy
Expand All @@ -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) }}

0 comments on commit 6521be3

Please sign in to comment.