File tree Expand file tree Collapse file tree 3 files changed +95
-0
lines changed
Expand file tree Collapse file tree 3 files changed +95
-0
lines changed Original file line number Diff line number Diff line change 1+ name : docusaurus cicd
2+ run-name : ${{ github.actor }} is trying actions to make docusaurus
3+ on :
4+ push :
5+ branches :
6+ - main
7+ pull_request :
8+ branches :
9+ - main
10+
11+ jobs :
12+ build-job :
13+ runs-on : ubuntu-24.04
14+ steps :
15+ - uses : actions/checkout@v5
16+ - name : Initialize Node.JS for this job
17+ uses : actions/setup-node@v6
18+ with :
19+ node-version : ' 20.x'
20+ - run : npm version
21+ - run : npm run build
22+ - name : Archive build/ artifacts
23+ uses : actions/upload-artifact@v4
24+ with :
25+ name : build-folder-artifacts-docusaurus
26+ path : build/
27+ - name : Upload Pages artifact
28+ uses : actions/upload-pages-artifact@v4
29+ with :
30+ path : build/
31+
32+ test-of-html :
33+ runs-on : ubuntu-24.04
34+ needs : build-job
35+ steps :
36+ - uses : actions/checkout@v5
37+ - name : Download build/ artifacts
38+ uses : actions/download-artifact@v5
39+ with :
40+ name : build-folder-artifacts-docusaurus
41+ path : build/
42+ - name : Initialize Node.JS for this job
43+ uses : actions/setup-node@v6
44+ with :
45+ node-version : ' 20.x'
46+ - run : |
47+ npm install htmlhint -g
48+ htmlhint --version
49+ npx htmlhint build/
50+
51+
52+ deploy-page :
53+ needs : test-of-html
54+ permissions :
55+ pages : write
56+ id-token : write
57+ runs-on : ubuntu-24.04
58+ steps :
59+ - name : Deplot to GitHub Pages
60+ uses : actions/deploy-pages@v4
61+
62+
63+
64+
Original file line number Diff line number Diff line change 1+ name: GitHub Actions Demoww
2+ run-name: ${{ github.actor }} is testing out GitHub Actions 🚀
3+ on: [push]
4+ jobs:
5+ Explore-GitHub-Actions:
6+ runs-on: ubuntu-latest
7+ steps:
8+ - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
9+ - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
10+ - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
11+ - name: Check out repository code
12+ uses: actions/checkout@v5
13+ - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
14+ - run: echo "🖥️ The workflow is now ready to test your code on the runner."
15+ - name: List files in the repository
16+ run: |
17+ ls ${{ github.workspace }}
18+ - run: echo "🍏 This job's status is ${{ job.status }}."
Original file line number Diff line number Diff line change 1+ name: learn-github-actions
2+ run-name: ${{ github.actor }} is learning GitHub Actions
3+ on: [push]
4+ jobs:
5+ check-bats-version:
6+ runs-on: ubuntu-latest
7+ steps:
8+ - uses: actions/checkout@v5
9+ - uses: actions/checkout@v4
10+ with:
11+ node-version: '20'
12+ - run: npm install -g bats
13+ - run: bats -v
You can’t perform that action at this time.
0 commit comments