aboutsummaryrefslogtreecommitdiffstats
path: root/ci-examples
diff options
context:
space:
mode:
authorAhmed <git@gumx.cc>2026-06-02 01:14:00 +0300
committerAhmed <git@gumx.cc>2026-06-02 01:18:36 +0300
commit3296eee590f795022dfae49567860270af5c6d51 (patch)
tree5bf600021fc381e445f463988f4022b25e6d1cbc /ci-examples
init: moved to git.gumx.ccHEADmain
Diffstat (limited to 'ci-examples')
-rw-r--r--ci-examples/.build.yml15
-rw-r--r--ci-examples/.github/workflows/wr.yml48
-rw-r--r--ci-examples/.gitlab-ci.yml9
3 files changed, 72 insertions, 0 deletions
diff --git a/ci-examples/.build.yml b/ci-examples/.build.yml
new file mode 100644
index 0000000..2bbd6ea
--- /dev/null
+++ b/ci-examples/.build.yml
@@ -0,0 +1,15 @@
+image: alpine/edge
+oauth: pages.sr.ht/PAGES:RW
+packages:
+- hut
+environment:
+ site: webring.gumx.cc
+sources:
+- https://git.sr.ht/~a2/webring
+tasks:
+- package: |
+ cd webring
+ ./wr
+ tar -C public -cvz . > ../site.tar.gz
+- upload: |
+ hut pages publish -d $site site.tar.gz \ No newline at end of file
diff --git a/ci-examples/.github/workflows/wr.yml b/ci-examples/.github/workflows/wr.yml
new file mode 100644
index 0000000..1459a9e
--- /dev/null
+++ b/ci-examples/.github/workflows/wr.yml
@@ -0,0 +1,48 @@
+name: Deploy webring to Pages
+
+on:
+ push:
+ branches: ["main"]
+ workflow_dispatch:
+
+permissions:
+ contents: read
+ pages: write
+ id-token: write
+
+concurrency:
+ group: "pages"
+ cancel-in-progress: true
+
+defaults:
+ run:
+ shell: sh
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+ with:
+ submodules: recursive
+ - name: Setup Pages
+ id: pages
+ uses: actions/configure-pages@v2
+ - name: Build webring
+ run: ./wr
+ - name: Upload artifact
+ uses: actions/upload-pages-artifact@v1
+ with:
+ path: ./public
+
+ deploy:
+ environment:
+ name: github-pages
+ url: ${{ steps.deployment.outputs.page_url }}
+ runs-on: ubuntu-latest
+ needs: build
+ steps:
+ - name: Deploy to GitHub Pages
+ id: deployment
+ uses: actions/deploy-pages@v1
diff --git a/ci-examples/.gitlab-ci.yml b/ci-examples/.gitlab-ci.yml
new file mode 100644
index 0000000..db7c574
--- /dev/null
+++ b/ci-examples/.gitlab-ci.yml
@@ -0,0 +1,9 @@
+image: alpine:latest
+pages:
+ script:
+ - ./wr
+ artifacts:
+ paths:
+ - public
+ only:
+ - pages \ No newline at end of file