back to sourcehut CI

This commit is contained in:
Aleks Rutins 2025-02-15 21:47:27 -05:00
parent 08d297a15d
commit 491e90b5e8
2 changed files with 19 additions and 16 deletions

19
.build.yml Normal file
View file

@ -0,0 +1,19 @@
image: alpine/edge
packages:
- ruby
- ruby-dev
- ruby-bundler
- hut
oauth: pages.sr.ht/PAGES:RW
environment:
site: farthergate.com
tasks:
- build: |
cd farthergate.com
bundle install --path vendor/bundle
bundle exec ruby build.rb
- package: |
cd farthergate.com/_build
tar -cvz . > ../../site.tar.gz
- upload: |
hut pages publish -d $site site.tar.gz

View file

@ -1,16 +0,0 @@
# The Docker image that will be used to build your app
image: ruby:3.4
# Functions that should be executed before the build script is run
before_script:
- bundle install
pages:
script:
- bundle exec ruby build.rb
artifacts:
paths:
# The folder that contains the files to be exposed at the Page URL
- public
rules:
# This ensures that only pushes to the default branch will trigger
# a pages deploy
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH