-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Idea is that more people can contribute to the website and build without having to setup a whole pipeline. Once pretalx publishes its yaml we can have a second test on that instead of the demo version. The container was built and pushed to my package repository because it seems github does not allow pushing packages when using fine grained pats ( github/roadmap#558 ). If someone can get it at FOSDEM, that seems a better place.
- Loading branch information
Showing
2 changed files
with
44 additions
and
5 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Build FOSDEM site | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- gha | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Copy test penta/pretalx export | ||
run: | | ||
mv sample/export . | ||
- name: Ensure pdf_grid is set to false in config.yaml | ||
run: | | ||
sed -i '/^pdf_grid/d' config.yaml | ||
echo "pdf_grid: false" >> config.yaml | ||
- name: Run nanoc build in docker | ||
uses: docker://ghcr.io/johanvdw/fosdem-website | ||
with: | ||
entrypoint: /bin/sh | ||
args: -c "bundle install && nanoc" | ||
|
||
# Step 5: Upload the 'output' directory as an artifact | ||
- name: Upload output directory | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: nanoc-output | ||
path: output | ||
|
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