File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Sample workflow for building and deploying a website to GitHub Pages
2+ name : Deploy Pages
3+
4+ on :
5+ # Runs on pushes targeting the default branch and c4 files
6+ push :
7+ branches : ["main"]
8+
9+ # Allows you to run this workflow manually from the Actions tab
10+ workflow_call :
11+ workflow_dispatch :
12+
13+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
14+ # permissions:
15+ # contents: read
16+ # pages: write
17+ # id-token: write
18+
19+ # Allow only one concurrent deployment, skipping runs queued between the run in progress and the latest queued.
20+ # However, do NOT cancel in-progress runs, as we want to allow these production deployments to be completed.
21+ concurrency :
22+ group : " pages"
23+ cancel-in-progress : false
24+
25+ jobs :
26+ # Build job
27+ build-pages :
28+ runs-on : ubuntu-latest
29+ steps :
30+ - name : Checkout
31+ uses : actions/checkout@v5
32+
33+ - name : Setup Pages
34+ id : pages
35+ uses : actions/configure-pages@v4
36+
37+ - name : Build
38+ uses : likec4/actions@v1
39+ with :
40+ action : build
41+ output : dist
42+ # required if you don't set a custom domain for the repository
43+ # https://docs.github.com/en/pages/getting-started-with-github-pages/about-github-pages#types-of-github-pages-sites
44+ base : ${{ steps.pages.outputs.base_path }}
45+ likec4-version : latest
46+
47+ - name : Upload artifact
48+ uses : actions/upload-pages-artifact@v3
49+ with :
50+ path : ./dist
51+
52+ # Deployment job
53+ # deploy-pages:
54+ # environment:
55+ # name: github-pages
56+ # url: ${{ steps.deployment.outputs.page_url }}
57+ # runs-on: ubuntu-latest
58+ # needs: build-pages
59+ # steps:
60+ # - name: Deploy to GitHub Pages
61+ # id: deployment
62+ # uses: actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments