From 5b18d947dfb5578acd2d6277b63e8d80ef34c52c Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Thu, 18 Nov 2021 14:34:58 +0800 Subject: [PATCH] Update deploy --- .../{deploy.yaml => mainnet-deploy.yaml} | 6 ++--- .github/workflows/testnet-deploy.yaml | 27 +++++++++++++++++++ 2 files changed, 30 insertions(+), 3 deletions(-) rename .github/workflows/{deploy.yaml => mainnet-deploy.yaml} (77%) create mode 100644 .github/workflows/testnet-deploy.yaml diff --git a/.github/workflows/deploy.yaml b/.github/workflows/mainnet-deploy.yaml similarity index 77% rename from .github/workflows/deploy.yaml rename to .github/workflows/mainnet-deploy.yaml index a3517bef..d1ae0be5 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/mainnet-deploy.yaml @@ -3,14 +3,14 @@ name: Ping Deploy on: push: - branches: [ master, testnet ] + branches: [ master ] pull_request: - branches: [ master, testnet ] + branches: [ master ] jobs: deploy: name: Ping deploy - runs-on: ${{ GITHUB_REF#refs/heads/ }} + runs-on: mainnet steps: - name: print run: echo ${GITHUB_REF#refs/heads/} diff --git a/.github/workflows/testnet-deploy.yaml b/.github/workflows/testnet-deploy.yaml new file mode 100644 index 00000000..988ab846 --- /dev/null +++ b/.github/workflows/testnet-deploy.yaml @@ -0,0 +1,27 @@ + +name: Ping Deploy + +on: + push: + branches: [ testnet ] + pull_request: + branches: [ testnet ] + +jobs: + deploy: + name: Ping deploy + runs-on: testnet + steps: + - name: print + run: echo ${GITHUB_REF#refs/heads/} + - name: Git Checkout Latest + uses: actions/checkout@v2 + + - name: Install + run: yarn install + + - name: Build + run: yarn run vue-cli-service build + + - name: Deploy + run: cp -rf ./dist/* /var/www/html/ \ No newline at end of file