This commit is contained in:
parent
f4602e85c2
commit
f39681119a
@ -35,15 +35,6 @@ jobs:
|
|||||||
- name: Create tarfile
|
- name: Create tarfile
|
||||||
run: tar -cf website.tar -C public .
|
run: tar -cf website.tar -C public .
|
||||||
|
|
||||||
# - name: Setup ssh
|
|
||||||
# run: |
|
|
||||||
# mkdir -p /home/runner/.ssh
|
|
||||||
# ssh-keyscan ${{secrets.SSH_HOST}} >> /home/runner/.ssh/known_hosts
|
|
||||||
# echo "${{ secrets.SSH_KEY }}" > /home/runner/.ssh/id_deployer
|
|
||||||
# chmod 600 /home/runner/.ssh/id_deployer
|
|
||||||
# ssh-agent -a $SSH_AUTH_SOCK > /dev/null
|
|
||||||
# ssh-add /home/runner/.ssh/id_deployer
|
|
||||||
|
|
||||||
- name: Deploy to server
|
- name: Deploy to server
|
||||||
uses: https://github.com/appleboy/scp-action@master
|
uses: https://github.com/appleboy/scp-action@master
|
||||||
with:
|
with:
|
||||||
@ -54,7 +45,7 @@ jobs:
|
|||||||
target: /tmp/
|
target: /tmp/
|
||||||
overwrite: true
|
overwrite: true
|
||||||
|
|
||||||
- name: Extract archive (test)
|
- name: Extract archive
|
||||||
uses: https://github.com/appleboy/ssh-action@master
|
uses: https://github.com/appleboy/ssh-action@master
|
||||||
with:
|
with:
|
||||||
host: ${{ secrets.SSH_HOST }}
|
host: ${{ secrets.SSH_HOST }}
|
||||||
@ -65,22 +56,8 @@ jobs:
|
|||||||
tar -xvf /tmp/website.tar --directory ${{ secrets.WEB_DIR }}/
|
tar -xvf /tmp/website.tar --directory ${{ secrets.WEB_DIR }}/
|
||||||
rm /tmp/website.tar
|
rm /tmp/website.tar
|
||||||
|
|
||||||
# - name: Create release
|
|
||||||
# id: create-release
|
|
||||||
# uses: actions/release-action@main
|
|
||||||
# with:
|
|
||||||
# files: |-
|
|
||||||
# website.tar
|
|
||||||
# api_key: '${{secrets.RELEASE_TOKEN}}'
|
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
path: website.tar
|
path: website.tar
|
||||||
|
|
||||||
# - name: Setup Minio client
|
|
||||||
# run: wget https://dl.min.io/client/mc/release/linux-amd64/mc && chmod +x ./mc && ./mc alias set deploy ${{ secrets.S3_ENDPOINT }} ${{ secrets.S3_ACCESS_KEY }} ${{ secrets.S3_SECRET_KEY }}
|
|
||||||
#
|
|
||||||
# - name: Deploy to Garage
|
|
||||||
# run: ./mc mirror --remove --overwrite ./public/ deploy/${{ secrets.S3_BUCKET }}
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user