Update workflow to setup ruby. #243
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: [push, pull_request] | |
name: Website Check | |
permissions: {} | |
jobs: | |
"Check_Website": | |
permissions: | |
contents: read | |
runs-on: ubuntu-latest | |
container: | |
image: "ghcr.io/naev/naev-docs:latest" | |
steps: | |
- name: Checkout Naev Website Repository | |
uses: actions/checkout@v3 | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
- name: Build and Check Website | |
run: | | |
make check | |
- name: Upload Crash Log | |
uses: actions/upload-artifact@v3 | |
with: | |
name: naev-website-${{ github.sha }}-crashlog | |
path: ${{ github.workspace }}/*.log | |
if-no-files-found: warn | |
- name: Upload Website Artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: naev-website-${{ github.sha }} | |
path: ${{ github.workspace }}/output/* | |
if-no-files-found: error |