change mastodon account #614
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
on: | |
push: | |
branches: | |
- main | |
name: Publish Website over SFTP | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Validate composer.json and composer.lock | |
run: composer validate | |
- name: Install composer dependencies | |
run: composer install --prefer-dist --no-progress --no-suggest | |
- name: Install npm dependencies | |
run: npm ci | |
- name: Check formatting | |
run: npm run format-check | |
- name: Run npm build | |
run: npm run build | |
- name: rsync deployments | |
uses: burnett01/[email protected] | |
with: | |
switches: -avzr --delete --exclude=.sonarcloud.properties --exclude=.git*/** --exclude=.git** --exclude=composer* --exclude=package* --exclude=node_modules/** --exclude=i18n/langcache | |
remote_path: /var/www/map/ | |
remote_host: railway-stations.org | |
remote_user: rswebsitesftp | |
remote_key: ${{ secrets.DEPLOY_KEY }} |