-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add workflow to generate site and fix typo in readme and logo
- Loading branch information
1 parent
09bac84
commit 44c152e
Showing
4 changed files
with
220 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
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@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: restore timestamps | ||
uses: chetan/git-restore-mtime-action@v1 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19 | ||
check-latest: true | ||
|
||
- name: Install xlog | ||
run: | | ||
go install github.com/emad-elsaid/xlog/cmd/xlog@latest | ||
- name: Build | ||
run: | | ||
xlog \ | ||
--build . \ | ||
--sitename "𓆚 Hydra" \ | ||
--index=README \ | ||
--sitemap.domain=hydra.emadelsaid.com \ | ||
--activitypub.domain=hydra.emadelsaid.com \ | ||
--activitypub.username=hydra \ | ||
--activitypub.summary="𓆚 C implementation of the famous Emacs Hydra package to be used in terminal. Groups commands and assign each command a key binding" \ | ||
--og.domain=hydra.emadelsaid.com \ | ||
--github.repo=https://github.com/emad-elsaid/hydra \ | ||
--rss.domain=hydra.emadelsaid.com \ | ||
--rss.description="𓆚 C implementation of the famous Emacs Hydra package to be used in terminal. Groups commands and assign each command a key binding" | ||
rm *.md | ||
chmod -R 0777 . | ||
- name: Upload GitHub Pages artifact | ||
uses: actions/[email protected] | ||
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@v1 |
This file contains 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