Skip to content

Commit

Permalink
Push to release instead
Browse files Browse the repository at this point in the history
  • Loading branch information
outercloudstudio committed Mar 28, 2024
1 parent c50ac87 commit 44f4b30
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ jobs:
path: './editor-packages'
persist-credentials: false

- name: Checkout Packages Release 🚀
uses: actions/checkout@v2
with:
path: './editor-packages-release'
ref: 'release'
persist-credentials: false

- name: Setup Deno 🚧
uses: denolib/setup-deno@v2
with:
Expand All @@ -25,20 +32,19 @@ jobs:
run: |
cd ./editor-packages
deno task build
mkdir ./public
mv packages.zip ./public
mv packages.zip ../editor-packages-release/
- name: Commit files ✅
run: |
cd ./editor-packages
cd ./editor-packages-release
git config --local user.email "${{ github.event.pusher.email }}"
git config --local user.name "${{ github.event.pusher.name }}"
git add -A && git commit -m "${{ github.event.head_commit.message }}"
- name: Push changes 🔼
uses: ad-m/github-push-action@v0.6.0
with:
directory: './editor-packages'
directory: './editor-packages-release'
repository: 'bridge-core/editor-packages'
branch: 'refactor'
branch: 'release'
github_token: ${{ secrets.EDITOR_DATA_PACKAGES }}

0 comments on commit 44f4b30

Please sign in to comment.