chore(website): drop support for Chrome older than 99 and update #59
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 website | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| paths: | |
| - 'blog/**' | |
| - 'docs/**' | |
| - 'website/**' | |
| - '.github/workflows/deploy-website.yml' | |
| workflow_dispatch: | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| environment: ferron-website | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| with: | |
| ref: main | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: latest | |
| - name: Install dependencies | |
| shell: bash | |
| run: | | |
| pushd website | |
| npm ci || npm install | |
| popd | |
| - name: Build the website | |
| shell: bash | |
| run: | | |
| pushd website | |
| npm run build | |
| popd | |
| - name: Create the website ZIP archive | |
| uses: thedoctor0/[email protected] | |
| with: | |
| type: "zip" | |
| filename: "../../ferron-website.zip" | |
| directory: "website/dist" | |
| - name: Set up SSH | |
| uses: LuisEnMarroquin/[email protected] | |
| with: | |
| ORIGIN: ${{ secrets.SSH_HOSTNAME }} | |
| SSHKEY: ${{ secrets.SSH_KEY }} | |
| NAME: ferron-servers | |
| PORT: ${{ secrets.SSH_PORT }} | |
| USER: ${{ secrets.SSH_USERNAME }} | |
| - name: Deploy the website | |
| shell: bash | |
| run: | | |
| scp ferron-website.zip ferron-servers:. | |
| # The "deploy-ferron-website" is a custom command that deploys the Ferron website | |
| ssh ferron-servers "sudo deploy-ferron-website ferron-website.zip && rm ferron-website.zip" |