From 491e90b5e8153f6233341d967f61223745b97832 Mon Sep 17 00:00:00 2001 From: Aleks Rutins Date: Sat, 15 Feb 2025 21:47:27 -0500 Subject: [PATCH] back to sourcehut CI --- .build.yml | 19 +++++++++++++++++++ .gitlab-ci.yml | 16 ---------------- 2 files changed, 19 insertions(+), 16 deletions(-) create mode 100644 .build.yml delete mode 100644 .gitlab-ci.yml diff --git a/.build.yml b/.build.yml new file mode 100644 index 0000000..6b1a93d --- /dev/null +++ b/.build.yml @@ -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 diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 7f61817..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -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