Start updating actions. #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildDeploy: | ||
environment: build | ||
runs-on: ubuntu-latest | ||
name: Build Deploy | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.11' | ||
- name: Build deploy | ||
run: bash script/prepare_deploy.sh | ||
- name: Zip deploy | ||
run: zip -r deploy.zip deploy | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: deploy | ||
path: deploy.zip | ||
if-no-files-found: error | ||
- name: Check build | ||
run: bash script/check_deploy.sh | ||
deploy: | ||
environment: deploy | ||
name: Deploy | ||
runs-on: ubuntu-latest | ||
needs: [buildDeploy] | ||
if: github.ref == 'refs/heads/main' | ||
steps: | ||
- name: Download artifact | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: deploy | ||
- name: Unzip | ||
run: unzip deploy.zip | ||
- name: Deploy | ||
uses: Creepios/sftp-action@v1.0.3 | ||
with: | ||
host: ${{ secrets.SFTPHOST }} | ||
port: 22 | ||
username: ${{ secrets.SFTPUSER }} | ||
password: ${{ secrets.SFTPPASSWORD }} | ||
localPath: './deploy' | ||
remotePath: './ag-adaptation-study.pub' |