36 lines
811 B
YAML
36 lines
811 B
YAML
name: Gitea Actions Demo
|
|
run-name: $ is testing out Gitea Actions 🚀
|
|
on: [push]
|
|
|
|
jobs:
|
|
Explore-Gitea-Actions:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- run: echo "Start action"
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Ruby
|
|
uses: ruby/setup-ruby@v1
|
|
with:
|
|
ruby-version: '3.3'
|
|
bundler-cache: true
|
|
|
|
- name: Install dependencies
|
|
run: bundle install
|
|
|
|
- name: Build Jekyll site
|
|
run: bundle exec jekyll build
|
|
|
|
- name: Start Jekyll server
|
|
run: |
|
|
bundle exec jekyll serve \
|
|
--host 0.0.0.0 \
|
|
--port 4000 \
|
|
--detach
|
|
|
|
- name: Verify Jekyll server
|
|
run: |
|
|
sleep 5
|
|
curl --fail http://127.0.0.1:4000
|