switch logo to svg, add svg variant of png logo #278
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 | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Setup Node | |
| uses: actions/setup-node@v1 | |
| with: | |
| node-version: '16.x' | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| - name: Cache Node modules | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.npm | |
| key: npm-${{ runner.os }}-${{ hashFiles('package-lock.json') }} | |
| restore-keys: | | |
| npm-${{ runner.os }}- | |
| npm- | |
| - name: Install Node modules | |
| run: npm install | |
| - name: Eleventy | |
| run: | | |
| npx eleventy --output='_site/' --pathprefix='/' | |
| - name: Deploy | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| publish_dir: ./_site | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| cname: servo.org |