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: |
38 curl -vvv --location -o ../xlog.tar.gz https://github.com/emad-elsaid/xlog/releases/download/${XLOG_VERSION}/xlog-${XLOG_VERSION}-linux-amd64.tar.gz
39 tar -xvf ../xlog.tar.gz -C ..
40
41 - name: Build
42 run: |
43 ../xlog \
44 --build . \
45 --sitename "user-name"
46 rm *.md
47 chmod -R 0777 .
48
49 - name: Upload GitHub Pages artifact
50 uses: actions/upload-pages-artifact@v3.0.1
51 with:
52 path: .
53
54 deploy:
55 environment:
56 name: github-pages
57 url: ${{ steps.deployment.outputs.page_url }}
58 runs-on: ubuntu-latest
59 needs: build
60 steps:
61 - name: Deploy to GitHub Pages
62 id: deployment
63 uses: actions/deploy-pages@v4
master
please change it in the previous file.