Skip to content

Commit e57bdf3

Browse files
committed
Updated the worker file to deploy all branches
1 parent 457371c commit e57bdf3

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/build_and_deploy.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
name: Build and Deploy to Github Pages
22

33
on:
4-
workflow_dispatch:
5-
push:
6-
branches: [ "master" ]
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- "*"
78

89
permissions:
910
id-token: write
@@ -44,7 +45,7 @@ jobs:
4445

4546
deploy:
4647
environment:
47-
name: github-pages
48+
name: ${{ github.ref_name == 'master' && 'github-pages' || github.ref_name }}
4849
url: ${{steps.deployment.outputs.page_url}}
4950
runs-on: ubuntu-latest
5051
needs: build

0 commit comments

Comments
 (0)