new links #139
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: Build Static Site with Nanoc | |
| on: [push] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| environment: Deploy | |
| steps: | |
| - name: apt update | |
| run: sudo apt-get update | |
| - name: Install libcurl | |
| run: sudo apt-get install libcurl4 libcurl3-gnutls libcurl4-openssl-dev | |
| - uses: actions/checkout@v2 | |
| - uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: 3.2.2 # Not needed with a .ruby-version file | |
| bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |
| - name: compile | |
| run: bundle exec nanoc compile | |
| - name: Deploy | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| personal_token: ${{ secrets.PERSONAL_TOKEN }} | |
| external_repository: web-development/web-development.github.io | |
| publish_branch: master | |
| publish_dir: ./output |