Merge pull request #290 from mjkzy/data-files

Data artifacts upload
This commit is contained in:
Maurice Heumann 2021-12-11 08:53:46 +01:00 committed by GitHub
commit d67d85bf99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,6 +55,13 @@ jobs:
build/bin/x64/${{matrix.configuration}}/s1x.exe build/bin/x64/${{matrix.configuration}}/s1x.exe
build/bin/x64/${{matrix.configuration}}/s1x.pdb build/bin/x64/${{matrix.configuration}}/s1x.pdb
- name: Upload ${{matrix.configuration}} data artifacts
uses: actions/upload-artifact@v2
with:
name: ${{matrix.configuration}} data artifacts
path: |
data/*
deploy: deploy:
name: Deploy artifacts name: Deploy artifacts
needs: build needs: build
@ -74,6 +81,12 @@ jobs:
with: with:
name: Release binaries name: Release binaries
- name: Download Release data artifacts
uses: actions/download-artifact@v2
with:
name: Release data artifacts
path: data
- name: Install SSH key - name: Install SSH key
uses: shimataro/ssh-key-action@v2 uses: shimataro/ssh-key-action@v2
with: with:
@ -90,8 +103,14 @@ jobs:
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Remove old data files
run: ssh ${{ secrets.XLABS_MASTER_SSH_USER }}@${{ secrets.XLABS_MASTER_SSH_ADDRESS }} rm -rf ${{ env.XLABS_MASTER_PATH }}/s1x/data/*
- name: Upload s1x binary - name: Upload s1x binary
run: rsync -avz s1x.exe ${{ secrets.XLABS_MASTER_SSH_USER }}@${{ secrets.XLABS_MASTER_SSH_ADDRESS }}:${{ env.XLABS_MASTER_PATH }}/s1x/ run: rsync -avz s1x.exe ${{ secrets.XLABS_MASTER_SSH_USER }}@${{ secrets.XLABS_MASTER_SSH_ADDRESS }}:${{ env.XLABS_MASTER_PATH }}/s1x/
- name: Upload data files
run: rsync -avz ./data/ ${{ secrets.XLABS_MASTER_SSH_USER }}@${{ secrets.XLABS_MASTER_SSH_ADDRESS }}:${{ env.XLABS_MASTER_PATH }}/s1x/data/
- name: Publish changes - name: Publish changes
run: ssh ${{ secrets.XLABS_MASTER_SSH_USER }}@${{ secrets.XLABS_MASTER_SSH_ADDRESS }} ${{ secrets.XLABS_MASTER_SSH_CHANGE_PUBLISH_COMMAND }} run: ssh ${{ secrets.XLABS_MASTER_SSH_USER }}@${{ secrets.XLABS_MASTER_SSH_ADDRESS }} ${{ secrets.XLABS_MASTER_SSH_CHANGE_PUBLISH_COMMAND }}