diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..00a0bfd --- /dev/null +++ b/.github/workflows/publish.yml @@ -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 diff --git a/.gitignore b/.gitignore index db13512..4f07a73 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,6 @@ dist/ templates/ -assets/ +draft/ .DS_Store diff --git a/Trunk.toml b/Trunk.toml new file mode 100644 index 0000000..125fc68 --- /dev/null +++ b/Trunk.toml @@ -0,0 +1,2 @@ +[build] +public_url = "/exify/" diff --git a/assets/favicon-16x16.png b/assets/favicon-16x16.png new file mode 100644 index 0000000..5cde920 Binary files /dev/null and b/assets/favicon-16x16.png differ diff --git a/assets/favicon-32x32.png b/assets/favicon-32x32.png new file mode 100644 index 0000000..7d44d96 Binary files /dev/null and b/assets/favicon-32x32.png differ diff --git a/assets/favicon.ico b/assets/favicon.ico new file mode 100644 index 0000000..019b7b8 Binary files /dev/null and b/assets/favicon.ico differ diff --git a/index.html b/index.html index 156fb54..250569e 100644 --- a/index.html +++ b/index.html @@ -3,6 +3,10 @@ Exify + + + +