Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I blame VSCode for the complete meltdown of my Git settings.. #21

Merged
merged 9 commits into from
May 14, 2024
20 changes: 14 additions & 6 deletions .github/workflows/website_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,36 @@ jobs:
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 APT Packages
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: graphicsmagick optipng tidy
version: website_1.0

- 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
if: failure()
with:
name: naev-website-${{ github.sha }}-crashlog
path: ${{ github.workspace }}/crash.log
if-no-files-found: error
path: ./*.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/*
path: ./output/*
if-no-files-found: error
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Gemfile.lock
crash.log
output/
tmp/
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.3
200 changes: 0 additions & 200 deletions Gemfile.lock

This file was deleted.

6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,8 @@ The writing is down using [markdown](https://daringfireball.net/projects/markdow

If you wish to use images you have to separately put them in `content/imgs/blarg/` and you can reference them in the post with the inline ruby code `<%= @items['/imgs/blarg/FILENAME'].path %>` where `FILENAME` is replaced by the name of the file. This expression will be converted to the file path when compiling.

For Blarg posts please try and follow the convention in [`content/content/imgs/blarg`](https://github.com/naev/naev-website/tree/main/content/imgs/blarg) to keep things organized. (`content/content/imgs/blarg/YYYY/MM`)
For Blarg posts please try and follow the convention in [`content/content/imgs/blarg`](./content/imgs/blarg) to keep things organized. (`content/content/imgs/blarg/YYYY/MM`)

### Maintenance

If you'd like to bump the version of ruby that the site is built with, change the version in [.ruby-version](./.ruby-version) to a supported version of ruby as mentioned on this [documentation page](https://github.com/ruby/setup-ruby?tab=readme-ov-file#supported-version-syntax).
Loading