52 lines
1.6 KiB
YAML
52 lines
1.6 KiB
YAML
name: Gitea Actions Demo Mkdocs
|
|
run-name: ${{ github.actor }} is testing out Gitea Actions 🚀
|
|
# Which git events can trigger this
|
|
on: [push]
|
|
jobs:
|
|
Explore-Gitea-Actions:
|
|
# Runner to use
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
|
|
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
|
|
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v6
|
|
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
|
|
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
|
|
- uses: https://github.com/actions/setup-python@v6
|
|
with:
|
|
python-version: '3.12'
|
|
# cache: 'pip'
|
|
- name: Execute a shell script
|
|
run: |
|
|
ls -l ${{ github.workspace }}
|
|
cd slides
|
|
# pip3 install -r requirements.txt
|
|
#./build.sh once
|
|
mount
|
|
df
|
|
- run: echo "🍏 This job's status is ${{ job.status }}."
|
|
|
|
# before_script:
|
|
# - pip install mkdocs-glightbox
|
|
|
|
# test:
|
|
# stage: test
|
|
# script:
|
|
# - mkdocs build --strict --verbose --site-dir test
|
|
# artifacts:
|
|
# paths:
|
|
# - test
|
|
# rules:
|
|
# - if: $CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH
|
|
|
|
# pages:
|
|
# stage: deploy
|
|
# script:
|
|
# - mkdocs build --strict --verbose --site-dir public
|
|
# artifacts:
|
|
# paths:
|
|
# - public
|
|
# rules:
|
|
# - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH |