diff --git a/floethereum/.github/workflows/push-dappbundle.yml b/floethereum/.github/workflows/push-dappbundle.yml new file mode 100644 index 0000000..dc42cb0 --- /dev/null +++ b/floethereum/.github/workflows/push-dappbundle.yml @@ -0,0 +1,50 @@ +name: Deploy to Dappbundle + +on: + push: + branches: + - main + +jobs: + build: + name: Deploy + runs-on: ubuntu-latest + + steps: + - name: Deploy via SSH + uses: appleboy/ssh-action@v1.0.0 + with: + host: ${{ secrets.R_HOST }} + username: ${{ secrets.P_USERNAME }} + password: ${{ secrets.P_PASSWORD }} + port: ${{ secrets.SSH_PORT }} + script: | + set -e + + BASE="${{ secrets.DEPLOYMENT_LOCATION }}" + APP="${{ github.event.repository.name }}" + + echo "== Ensuring dappbundle repo exists ==" + + if [ ! -d "$BASE/dappbundle/.git" ]; then + echo "Cloning dappbundle..." + git clone https://gitea.ranchimall.net/RanchiMall/dappbundle.git "$BASE/dappbundle" + else + echo "Updating dappbundle..." + cd "$BASE/dappbundle" + git pull + fi + + echo "== Refreshing app bundle ==" + + rm -rf "$BASE/dappbundle/$APP" + + git clone https://gitea.ranchimall.net/RanchiMall/$APP "$BASE/dappbundle/$APP" + + cd "$BASE/dappbundle" + git config user.email "ranchimallfze@gmail.com" + git config user.name "ranchimall" + + git add . + git commit -m "Auto-update $APP" || echo "No changes to commit" + git push \ No newline at end of file diff --git a/floethereum/README.md b/floethereum/README.md index 9455e1a..e713628 100644 --- a/floethereum/README.md +++ b/floethereum/README.md @@ -1 +1 @@ -# Check balance, transaction history and send USDC and USDT on Ethereum mainnet with your FLO/BTC/ETH private key (WIF) +# Check balance, transaction history and send ERC-20 USDT and USDC on Ethereum mainnet with your FLO/BTC/ETH private key