Skip to content

Commit

Permalink
mirroring
Browse files Browse the repository at this point in the history
  • Loading branch information
tempe-techie committed Jun 14, 2023
1 parent 612b298 commit 20f05f6
Showing 1 changed file with 26 additions and 17 deletions.
43 changes: 26 additions & 17 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,30 @@
name: Build and Deploy
on:
push:
branches:
- main
name: Mirroring

on: [push, delete]

jobs:
build-and-deploy:
to_bitbucket:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/[email protected]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: pixta-dev/repository-mirroring-action@v1
with:
target_repo_url:
[email protected]:punk-domains/flr-domains-frontend.git
ssh_private_key:
${{ secrets.BITBUCKET_SSH_PRIVATE_KEY }}

- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder.
run: |
npm install
npm run build
- name: Deploy 🚀
uses: JamesIves/[email protected]
to_gitlab:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: pixta-dev/repository-mirroring-action@v1
with:
branch: gh-pages # The branch the action should deploy to.
folder: dist # The folder the action should deploy.
target_repo_url:
[email protected]:punk-domains/flr-domains-frontend.git
ssh_private_key:
${{ secrets.BITBUCKET_SSH_PRIVATE_KEY }}

0 comments on commit 20f05f6

Please sign in to comment.