fix(github): fix CI
This commit is contained in:
parent
334d1b5537
commit
b7aba4e978
43
.github/workflows/build.yml
vendored
43
.github/workflows/build.yml
vendored
@ -24,7 +24,7 @@ jobs:
|
|||||||
- Release
|
- Release
|
||||||
steps:
|
steps:
|
||||||
- name: Check out files
|
- name: Check out files
|
||||||
uses: actions/checkout@v3.5.2
|
uses: actions/checkout@v3.5.3
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
@ -50,44 +50,3 @@ jobs:
|
|||||||
path: |
|
path: |
|
||||||
build/bin/Win32/${{matrix.configuration}}/iw4x.dll
|
build/bin/Win32/${{matrix.configuration}}/iw4x.dll
|
||||||
build/bin/Win32/${{matrix.configuration}}/iw4x.pdb
|
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 }}
|
|
||||||
|
@ -1,10 +1,5 @@
|
|||||||
![license](https://img.shields.io/github/license/IW4x/iw4x-client.svg)
|
![license](https://img.shields.io/github/license/diamante0018/iw4x-client.svg)
|
||||||
![forks](https://img.shields.io/github/forks/IW4x/iw4x-client.svg)
|
[![build](https://github.com/diamante0018/iw4x-client/workflows/Build/badge.svg)](https://github.com/diamante0018/iw4x-client/actions)
|
||||||
![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)
|
|
||||||
|
|
||||||
# IW4x: Client
|
# IW4x: Client
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user