diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml new file mode 100644 index 0000000..447bef7 --- /dev/null +++ b/.github/workflows/deploy.yaml @@ -0,0 +1,46 @@ +name: Deploy to GitHub Pages + +on: + # Trigger the workflow every time you push to the `main` branch + # Using a different branch name? Replace `main` with your branch’s name + push: + branches: [main] + # Allows you to run this workflow manually from the Actions tab on GitHub. + workflow_dispatch: + +# Allow this job to clone the repo and create a page deployment +permissions: + contents: read + pages: write + id-token: write + +# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. +# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. +concurrency: + group: pages + cancel-in-progress: false + +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Install, build, and upload the artifact + uses: withastro/action@v2 + with: + node-version: 20 + package-manager: pnpm@latest + + deploy: + name: Deploy + needs: build + runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 diff --git a/README.md b/README.md index e34a99b..60ed2fc 100644 --- a/README.md +++ b/README.md @@ -1,33 +1,8 @@ -# Astro Starter Kit: Minimal +# Website for mini-patisserie "Irena" -```sh -npm create astro@latest -- --template minimal -``` +![Irena logo](./src/assets/brand/repo/thumbnail.png) -[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/withastro/astro/tree/latest/examples/minimal) -[![Open with CodeSandbox](https://assets.codesandbox.io/github/button-edit-lime.svg)](https://codesandbox.io/p/sandbox/github/withastro/astro/tree/latest/examples/minimal) -[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/withastro/astro?devcontainer_path=.devcontainer/minimal/devcontainer.json) - -> πŸ§‘β€πŸš€ **Seasoned astronaut?** Delete this file. Have fun! - -## πŸš€ Project Structure - -Inside of your Astro project, you'll see the following folders and files: - -```text -/ -β”œβ”€β”€ public/ -β”œβ”€β”€ src/ -β”‚ └── pages/ -β”‚ └── index.astro -└── package.json -``` - -Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name. - -There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components. - -Any static assets, like images, can be placed in the `public/` directory. +[![Built with Astro](https://astro.badg.es/v2/built-with-astro/small.svg)](https://astro.build) ## 🧞 Commands @@ -35,13 +10,9 @@ All commands are run from the root of the project, from a terminal: | Command | Action | | :------------------------ | :----------------------------------------------- | -| `npm install` | Installs dependencies | -| `npm run dev` | Starts local dev server at `localhost:4321` | -| `npm run build` | Build your production site to `./dist/` | -| `npm run preview` | Preview your build locally, before deploying | -| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` | -| `npm run astro -- --help` | Get help using the Astro CLI | - -## πŸ‘€ Want to learn more? - -Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat). +| `pnpm install` | Installs dependencies | +| `pnpm dev` | Starts local dev server at `localhost:4321` | +| `pnpm build` | Build your production site to `./dist/` | +| `pnpm preview` | Preview your build locally, before deploying | +| `pnpm astro ...` | Run CLI commands like `astro add`, `astro check` | +| `pnpm astro -- --help` | Get help using the Astro CLI | diff --git a/astro.config.ts b/astro.config.ts index 1faa4d2..715257f 100644 --- a/astro.config.ts +++ b/astro.config.ts @@ -7,7 +7,9 @@ import { locales } from './i18n.config' // https://astro.build/config export default defineConfig({ - site: 'http://localhost:4321', + site: 'https://irena.ee', + + trailingSlash: 'always', integrations: [ unocss({ diff --git a/public/CNAME b/public/CNAME new file mode 100644 index 0000000..c844782 --- /dev/null +++ b/public/CNAME @@ -0,0 +1 @@ +irena.ee \ No newline at end of file diff --git a/src/assets/brand/repo/thumbnail.png b/src/assets/brand/repo/thumbnail.png new file mode 100644 index 0000000..3b83153 Binary files /dev/null and b/src/assets/brand/repo/thumbnail.png differ