Actions_tests/.forgejo/workflows/demo.yaml

35 lines
923 B
YAML
Raw Normal View History

2024-04-16 07:19:19 +00:00
on: [push]
jobs:
test:
2024-04-16 07:27:38 +00:00
runs-on: bookworm
2024-04-16 07:29:27 +00:00
container: minidocks/mkdocs
2024-04-16 07:19:19 +00:00
steps:
2024-04-16 08:43:40 +00:00
- name: Add NodeJs & Git
2024-04-16 08:15:44 +00:00
run: |
2024-04-16 08:19:56 +00:00
uname -a
2024-04-16 08:43:40 +00:00
apk add nodejs npm git
2024-04-16 08:41:42 +00:00
- name: Checkout repository with git
2024-04-16 08:43:14 +00:00
run: |
git clone --depth 1 https://git.numenaute.org/YannK/Actions_tests.git
2024-04-16 08:40:22 +00:00
# uses: actions/checkout@v4
# with:
# github-server-url: https://git.numenaute.org/
2024-04-16 07:59:40 +00:00
- name: Show content
run: |
pwd
ls -al
- name: Compile mkdocs
2024-04-16 08:44:27 +00:00
run: |
cd Actions_tests
2024-04-16 08:46:45 +00:00
mkdocs build
- name: 'Upload Artifact'
2024-04-16 08:50:49 +00:00
uses: actions/upload-artifact@v3
2024-04-16 08:49:17 +00:00
with:
name: Mkdocs_files
2024-04-19 07:47:38 +00:00
path: /workspace/YannK/Actions_tests/Actions_tests/site
secret_test:
runs-on: bookworm
step:
- name: Test de secret
run: |
echo {{ secrets.CD_SECRET_NUMBER_1 }}