Skip to content

Commit

Permalink
GHA take 6
Browse files Browse the repository at this point in the history
fix cp command and branch name sub
  • Loading branch information
errose28 committed Dec 15, 2023
1 parent 9b5f97e commit 048fb83
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,12 @@ jobs:
- name: "Commit changes"
working-directory: 'publish'
run: |
echo "Deleting previous build from the branch $GITHUB_REF_NAME"
mv .git /tmp
echo "Deleting previous build from the branch ${{ github.ref_name }}
# Skips removing the .git folder so that we still have branch tracking information.
rm -rf *
mv /tmp/.git .
echo "Committing new build to the branch $GITHUB_REF_NAME"
cp -R ../src/build/ .
echo "Committing new build to the branch ${{ github.ref_name }}"
cp -R ../src/build/. .
git config --global user.name 'Github Actions'
git config --global user.email 'noreply@github.com'
git add .
Expand Down

0 comments on commit 048fb83

Please sign in to comment.