Update github actions versions #38
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
name: Build and publish | |
on: push | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Remove not-wanted files in server | |
run: "rm -r README.md .git .github" | |
- uses: actions/upload-artifact@v4 | |
name: Upload Artifact | |
with: | |
name: FindMyAC | |
path: "./*" | |
- name: Copy repository contents | |
uses: wangyucode/[email protected] | |
with: | |
host: ${{ secrets.HOST }} | |
username: ${{ secrets.USERNAME }} | |
port: ${{ secrets.PORT }} | |
privateKey: ${{ secrets.SSHKEY }} | |
passphrase: ${{ secrets.PASSPHRASE }} | |
localDir: "./" | |
remoteDir: "/var/www/findmyac" | |
dryRun: false | |
forceUpload: true |