diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..5b7325b --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,51 @@ +name: Deploy to GitHub Pages + +on: + push: + branches: [ main ] + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version-file: '.nvmrc' + + - name: Install dependencies + run: npm install + + - name: Build with Astro + run: npm run build + + - name: Upload artifact + if: github.event_name != 'pull_request' + uses: actions/upload-pages-artifact@v3 + with: + path: ./dist + + deploy: + if: github.event_name != 'pull_request' + 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 diff --git a/.gitignore b/.gitignore index 0564e93..de96a4c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,13 @@ +# dependencies node_modules/ + +# build output dist/ .astro/ + +# environment variables .env +.env.production + +# macOS-specific files +.DS_Store diff --git a/astro.config.mjs b/astro.config.mjs index 4840250..9e97eb0 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -1,4 +1,13 @@ -import { defineConfig } from "astro/config"; +import { defineConfig } from 'astro/config'; -// https://astro.build/config -export default defineConfig({}); +// CONF WITHOUT REAL DOMAIN +export default defineConfig({ + site: 'https://python-spain.github.io', + base: '/2026.es.pycon.org', +}); + +//CONFIG WITH REAL DOMAIN +// export default defineConfig({ +// site: 'https://2026.es.pycon.org', +// base: '/', +// }); \ No newline at end of file