Improve Education steps section #298
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, Test and Deploy with FTP | |
on: push | |
jobs: | |
eslint-check: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v1 | |
with: | |
fetch-depth: 1 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8.6.11 | |
- name: pnpm install | |
run: pnpm install --frozen-lockfile | |
- name: Run ESLint | |
run: pnpm run eslint:scan | |
nuxt-generate: | |
name: Yarn build | |
runs-on: ubuntu-20.04 | |
needs: | |
- eslint-check | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8.6.11 | |
- uses: actions/setup-node@master | |
with: | |
node-version: 18 | |
- name: pnpm module install | |
run: pnpm install --frozen-lockfile | |
- name: nuxt generate | |
run: pnpm run generate | |
- uses: actions/upload-artifact@master | |
with: | |
name: build-artifact | |
path: .output/public/ | |
# Deploy if this is the master branch | |
deploy: | |
needs: | |
- nuxt-generate | |
runs-on: ubuntu-20.04 | |
if: github.ref == 'refs/heads/master' | |
name: Deploy to FTP Server | |
steps: | |
- uses: actions/download-artifact@master | |
with: | |
name: build-artifact | |
path: .output/public/ | |
- name: Deploy to FTP Server | |
uses: SamKirkland/[email protected] | |
with: | |
server: ha01s018.org-dns.com | |
username: bassadin_root_website | |
password: ${{ secrets.FTP_Password }} | |
protocol: ftps | |
local-dir: .output/public/ | |
security: strict |