Skip to content

Commit

Permalink
CI (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
sectore authored Nov 8, 2023
1 parent 7545931 commit a3c2448
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: GitHub Pages

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-22.04
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v3
- name: Install
uses: cachix/install-nix-action@v22
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
extra_nix_config: |
experimental-features = nix-command flakes
nix_path: nixpkgs=channel:nixos-unstable

- name: Build
run: nix develop -c trunk build

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ dist/

templates/

assets/
draft/

.DS_Store
2 changes: 2 additions & 0 deletions Trunk.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[build]
public_url = "/exify/"
Binary file added assets/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/favicon.ico
Binary file not shown.
4 changes: 4 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
<head>
<meta charset="utf-8" />
<title>Exify</title>
<link type="image/x-icon" rel="icon" href="/exify/assets/favicon.ico" />
<link type="image/x-icon" rel="shortcut icon" href="/exify/assets/favicon.ico" />
<link rel="icon" type="image/png" href="/exify/assets/favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="/exify/assets/favicon-16x16.png" sizes="16x16" />
<link data-trunk rel="tailwind-css" href="./index.css"/>
<link data-trunk rel="copy-dir"" href="./assets" />
</head>
Expand Down

0 comments on commit a3c2448

Please sign in to comment.