Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/cd #71

Merged
merged 3 commits into from
Aug 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 8 additions & 12 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,14 @@ jobs:
run: |
tar zxvvf dist/onesignal-ngx.tgz -C __clone/
cd __clone/onesignal-ngx
while read file; do git rm "$file"; done < ../../build/onesignal-ngx.rmfiles
git add .
git add -A
rgomezp marked this conversation as resolved.
Show resolved Hide resolved
if git commit -m "Update onesignal-ngx"; then
echo "onesignal-ngx repository has been updated"
else
echo "onesignal-ngx repository has NOT been updated, no changes to commit"
fi
- name: "[onesignal-ngx] Push"
uses: ad-m/github-push-action@master
uses: ad-m/github-push-action@v0.6.0
with:
repository: OneSignal/onesignal-ngx
directory: __clone/onesignal-ngx
Expand Down Expand Up @@ -80,15 +79,14 @@ jobs:
run: |
tar zxvvf dist/react.tgz -C __clone/
cd __clone/react
while read file; do git rm "$file"; done < ../../build/react.rmfiles
git add .
git add -A
if git commit -m "Update react-onesignal"; then
echo "react-onesignal repository has been updated"
else
echo "react-onesignal repository has NOT been updated, no changes to commit"
fi
- name: "[react-onesignal] Push"
uses: ad-m/github-push-action@master
uses: ad-m/github-push-action@v0.6.0
with:
repository: OneSignal/react-onesignal
directory: __clone/react
Expand Down Expand Up @@ -119,15 +117,14 @@ jobs:
run: |
tar zxvvf dist/vue/v2.tgz -C __clone/
cd __clone/vue/v2
while read file; do git rm "$file"; done < ../../build/vue/v2.rmfiles
git add .
git add -A
if git commit -m "Update onesignal-vue"; then
echo "onesignal-vue repository has been updated"
else
echo "onesignal-vue repository has NOT been updated, no changes to commit"
fi
- name: "[onesignal-vue] Push"
uses: ad-m/github-push-action@master
uses: ad-m/github-push-action@v0.6.0
with:
repository: OneSignal/onesignal-vue
directory: __clone/vue/v2
Expand Down Expand Up @@ -158,15 +155,14 @@ jobs:
run: |
tar zxvvf dist/vue/v3.tgz -C __clone/
cd __clone/vue/v3
while read file; do git rm "$file"; done < ../../build/vue/v3.rmfiles
git add .
git add -A
if git commit -m "Update onesignal-vue3"; then
echo "onesignal-vue3 repository has been updated"
else
echo "onesignal-vue3 repository has NOT been updated, no changes to commit"
fi
- name: "[onesignal-vue3] Push"
uses: ad-m/github-push-action@master
uses: ad-m/github-push-action@v0.6.0
with:
repository: OneSignal/onesignal-vue3
directory: __clone/vue/v3
Expand Down
7 changes: 0 additions & 7 deletions scripts/build
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,6 @@ mv build/vue/v2.tgz dist/vue/v2.tgz
mv build/vue/v3.tgz dist/vue/v3.tgz
echo 'Done.'

echo 'Diff between current build and the content of the downstream repo.'
git diff --diff-filter=RD --name-status --no-index outputs/onesignal-ngx build/onesignal-ngx | cut -f 2 | perl -pe 's{outputs/[^/]+/}{}' >> build/onesignal-ngx.rmfiles || true
git diff --diff-filter=RD --name-status --no-index outputs/react build/react | cut -f 2 | perl -pe 's{outputs/[^/]+/}{}' >> build/react.rmfiles || true
git diff --diff-filter=RD --name-status --no-index outputs/vue/v2 build/vue/v2 | cut -f 2 | perl -pe 's{outputs/[^/]+/}{}' >> build/vue/v2.rmfiles || true
git diff --diff-filter=RD --name-status --no-index outputs/vue/v3 build/vue/v3 | cut -f 2 | perl -pe 's{outputs/[^/]+/}{}' >> build/vue/v3.rmfiles || true
echo 'Done.'

# This is required to use 'npm link' when testing local builds
# We do this last so unneed files are not included in the releases.
echo 'yarn init for local dev testing'
Expand Down