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
on: | |
release: | |
types: [published] | |
name: π Deploy website on new release | |
jobs: | |
test: | |
name: π§ Running Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install modules | |
run: npm i | |
- name: Run standardjs | |
run: npm test | |
web-deploy: | |
name: π Deploy | |
needs: test | |
runs-on: ubuntu-latest | |
steps: | |
- name: π Get latest code | |
uses: actions/checkout@v4 | |
- name: Install 11ty and build website | |
uses: extrawitz/11ty-dockerless-build@v1 | |
- name: π Sync files | |
uses: SamKirkland/FTP-Deploy-Action@v4.3.5 | |
with: | |
server: ${{ secrets.ftp_server }} | |
username: ${{ secrets.ftp_username }} | |
password: ${{ secrets.ftp_password }} | |
local-dir: dist/ | |
# dangerous-clean-slate: true |