Skip to content

Update ci.yml

Update ci.yml #71

Workflow file for this run

name: ci
on:
workflow_dispatch:
push:
branches: [ "main" ]
paths: [ "input/**" ]
pull_request:
branches: [ "main" ]
paths: [ "input/**" ]
env:
GH_TOKEN: ${{ github.token }}
jobs:
convert-and-upload:
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Convert polarion files
run: |
gh release download wip --pattern 'gpc'
chmod +x gpc
./gpc ./input/filelist.txt ./output
rm gpc
- name: Deploy generated files
- run: |
mkdir ~/.ssh
ssh-keyscan -H ssh.strato.de >> ~/.ssh/known_hosts
sshpass -p ${{secrets.SFTP_PASSWORD}} sftp ${{secrets.SFTP_USERNAME}}@ssh.strato.de << !
PUT -R *
BYE
!
#- name: Convert polarion files
# run: gh release download wip --pattern 'gpc'
#- run: chmod +x gpc
#- run: ./gpc ./input/filelist.txt ./output
#- run: rm gpc
#- name: Deploy to gemspec.online
# uses: wlixcc/[email protected]
# with:
# server: ${{ secrets.GEMSPEC_ONLINE_SFTP_SERVER }}
# port: ${{ secrets.GEMSPEC_ONLINE_SFTP_PORT }}
# username: ${{ secrets.GEMSPEC_ONLINE_SFTP_USERNAME }}
# password: ${{ secrets.GEMSPEC_ONLINE_SFTP_PASSWORD }}
# local_path: './output/*'
# remote_path: '/output/'
# sftp_only: true
# # delete_remote_files: true