Last active
November 4, 2021 00:59
-
-
Save Olein-jp/a77776923d3862e6850297ec7a8050b3 to your computer and use it in GitHub Desktop.
YAML for file uploading via FTP when you pushed master branch with new tag
This file contains hidden or 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: Deploy via Github Actions to Production | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- '[0-9]+.[0-9]+.[0-9]*' | |
jobs: | |
test: | |
name: Deploy to server | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Sync files | |
uses: SamKirkland/[email protected] | |
with: | |
server: ${{ secrets.FTP_SERVER }} | |
username: ${{ secrets.FTP_USERNAME }} | |
password: ${{ secrets.FTP_PASSWORD }} | |
server-dir: ${{ secrets.FTP_SERVER_DIR }} | |
exclude: "[**/.**/**, .gitignore, **/.git/**, **/node_modules/**, **/vendor/**, .editorconfig, README.md, .phpcs.xml.dist, **.json, **.lock, postcss.config.js, **/src/**]" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Assumed situation