modified | Sunday 5 January 2025 |
---|
Assuming your user name on github is user-name
:
1name: Xlog
2
3on:
4 push:
5 branches: [ "master" ]
6
7 # Allows you to run this workflow manually from the Actions tab
8 workflow_dispatch:
9
10permissions:
11 contents: read
12 pages: write
13 id-token: write
14
15concurrency:
16 group: "pages"
17 cancel-in-progress: true
18
19jobs:
20 build:
21 runs-on: ubuntu-latest
22
23 steps:
24 - uses: actions/checkout@v4
25 with:
26 fetch-depth: 0
27
28 - name: Allow non-ASCII character
29 run: git config core.quotepath false
30
31 - name: restore timestamps
32 uses: chetan/git-restore-mtime-action@v1
33
34 - name: Install xlog
35 env:
36 XLOG_VERSION: v1.6.6
37 run: curl --location https://github.com/emad-elsaid/xlog/releases/download/${XLOG_VERSION}/xlog-${XLOG_VERSION}-linux-amd64.tar.gz | tar -xz -C ..
38
39 - name: Build
40 run: |
41 ../xlog \
42 --build . \
43 --sitename "user-name"
44 rm *.md
45 chmod -R 0777 .
46
47 - name: Upload GitHub Pages artifact
48 uses: actions/upload-pages-artifact@v3.0.1
49 with:
50 path: .
51
52 deploy:
53 environment:
54 name: github-pages
55 url: ${{ steps.deployment.outputs.page_url }}
56 runs-on: ubuntu-latest
57 needs: build
58 steps:
59 - name: Deploy to GitHub Pages
60 id: deployment
61 uses: actions/deploy-pages@v4
master
please change it in the previous file.