Skip to content

Commit

Permalink
add personal branch to github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ZuliusRoolf committed Jan 1, 2025
1 parent 65d8cd0 commit 76913a2
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ name: Deploy static content to Pages
on:
# Runs on pushes targeting the default branch
push:
branches:
- "personal"
- "template"
branches: ["personal"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -32,24 +30,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
with:
ref: ${{ github.ref_name }}

- name: Determine branch to publish
id: branch-check
run: |
if git ls-remote --heads origin personal | grep personal; then
echo "branch=personal" >> $GITHUB_ENV
else
echo "branch=template" >> $GITHUB_ENV
fi
- name: Checkout selected branch
uses: actions/checkout@v4
with:
ref: ${{ env.branch }}

- name: Setup Pages
uses: actions/configure-pages@v5
Expand Down

0 comments on commit 76913a2

Please sign in to comment.