From b7aba4e97830fb8a77c7dd5e5acc1302845fe31d Mon Sep 17 00:00:00 2001 From: Diavolo Date: Fri, 16 Jun 2023 19:38:12 +0200 Subject: [PATCH] fix(github): fix CI --- .github/workflows/build.yml | 43 +------------------------------------ README.md | 9 ++------ 2 files changed, 3 insertions(+), 49 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 951fd023..e871fcdf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,7 +24,7 @@ jobs: - Release steps: - name: Check out files - uses: actions/checkout@v3.5.2 + uses: actions/checkout@v3.5.3 with: submodules: true fetch-depth: 0 @@ -50,44 +50,3 @@ jobs: path: | build/bin/Win32/${{matrix.configuration}}/iw4x.dll build/bin/Win32/${{matrix.configuration}}/iw4x.pdb - - deploy: - name: Deploy artifacts - needs: build - runs-on: ubuntu-latest - if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop') - steps: - - name: Setup main environment - if: github.ref == 'refs/heads/master' - run: echo "XLABS_MASTER_PATH=${{ secrets.XLABS_MASTER_SSH_PATH }}" >> $GITHUB_ENV - - - name: Setup develop environment - if: github.ref == 'refs/heads/develop' - run: echo "XLABS_MASTER_PATH=${{ secrets.XLABS_MASTER_SSH_PATH_DEV }}" >> $GITHUB_ENV - - - name: Download Release binaries - uses: actions/download-artifact@v3.0.2 - with: - name: Release binaries - - # Set up committer info and GPG key - - name: Install SSH key - uses: shimataro/ssh-key-action@v2.5.1 - with: - key: ${{ secrets.XLABS_MASTER_SSH_PRIVATE_KEY }} - known_hosts: 'just-a-placeholder-so-we-dont-get-errors' - - - name: Add known hosts - run: ssh-keyscan -H ${{ secrets.XLABS_MASTER_SSH_ADDRESS }} >> ~/.ssh/known_hosts - -# - name: Remove old data files -# run: ssh ${{ secrets.XLABS_MASTER_SSH_USER }}@${{ secrets.XLABS_MASTER_SSH_ADDRESS }} rm -rf ${{ env.XLABS_MASTER_PATH }}/iw4x/data/* - - - name: Upload iw4x binary - run: rsync -avz iw4x.dll ${{ secrets.XLABS_MASTER_SSH_USER }}@${{ secrets.XLABS_MASTER_SSH_ADDRESS }}:${{ env.XLABS_MASTER_PATH }}/iw4x/ - -# - name: Upload data files -# run: rsync -avz ./data/ ${{ secrets.XLABS_MASTER_SSH_USER }}@${{ secrets.XLABS_MASTER_SSH_ADDRESS }}:${{ env.XLABS_MASTER_PATH }}/iw4x/data/ - - - name: Publish changes - run: ssh ${{ secrets.XLABS_MASTER_SSH_USER }}@${{ secrets.XLABS_MASTER_SSH_ADDRESS }} ${{ secrets.XLABS_MASTER_SSH_CHANGE_PUBLISH_COMMAND }} diff --git a/README.md b/README.md index d7a32313..9b9e005c 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,5 @@ -![license](https://img.shields.io/github/license/IW4x/iw4x-client.svg) -![forks](https://img.shields.io/github/forks/IW4x/iw4x-client.svg) -![stars](https://img.shields.io/github/stars/IW4x/iw4x-client.svg) -![issues](https://img.shields.io/github/issues/IW4x/iw4x-client.svg) -[![build](https://github.com/XLabsProject/iw4x-client/workflows/Build/badge.svg)](https://github.com/XLabsProject/iw4x-client/actions) -[![discord](https://img.shields.io/endpoint?url=https://momo5502.com/iw4x/members-badge.php)](https://discord.gg/sKeVmR3) -[![patreon](https://img.shields.io/badge/patreon-support-blue.svg?logo=patreon)](https://www.patreon.com/xlabsproject) +![license](https://img.shields.io/github/license/diamante0018/iw4x-client.svg) +[![build](https://github.com/diamante0018/iw4x-client/workflows/Build/badge.svg)](https://github.com/diamante0018/iw4x-client/actions) # IW4x: Client