Refactoring to use any instead of interface (#113) #464
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Xlog | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: restore timestamps | |
| uses: chetan/git-restore-mtime-action@v1 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| check-latest: true | |
| - name: Build | |
| run: | | |
| go run ./cmd/xlog \ | |
| --build . \ | |
| --sitename "Xlog" \ | |
| --theme "light" \ | |
| --notfoundpage "docs/404" \ | |
| --custom.head=docs/header.html \ | |
| --sitemap.domain=xlog.emadelsaid.com \ | |
| --rss.domain xlog.emadelsaid.com \ | |
| --activitypub.domain=xlog.emadelsaid.com \ | |
| --activitypub.username=app \ | |
| --activitypub.summary="Xlog is a static site generator for digital gardening written in Go. It serves markdown files as HTML and allows editing files online. It focuses on enriching markdown files and surfacing implicit links between pages." \ | |
| --og.domain xlog.emadelsaid.com \ | |
| --github.url https://github.com/emad-elsaid/xlog/edit/master | |
| rm *.md | |
| chmod -R 0777 . | |
| - name: Upload GitHub Pages artifact | |
| uses: actions/upload-pages-artifact@v3.0.1 | |
| with: | |
| path: . | |
| deploy: | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |