Skip to content

Commit

Permalink
feat: add fix/ branch support to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jojobyte committed Feb 8, 2024
1 parent b511813 commit a36fcca
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Deploy static site

on:
push:
branches: ["master","feat/*"]
branches: ["master","feat/*","fix/*"]
workflow_dispatch:

# Allow one concurrent deployment
Expand Down Expand Up @@ -32,9 +32,10 @@ jobs:
- name: Get clean branch name
id: clean_branch
env:
RM_FEAT: "feat/"
REPLACE_SLASH: "/"
WITH_DASH: "-"
run: |
export BRANCH=${GITHUB_REF_NAME//$RM_FEAT/}
export BRANCH=${GITHUB_REF_NAME//$REPLACE_SLASH/$WITH_DASH}
echo "branch=$BRANCH" >> "$GITHUB_OUTPUT"
- name: Deploy via rsync
uses: bnnanet/github-actions-rsync@master
Expand Down

0 comments on commit a36fcca

Please sign in to comment.