diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 30782ce..0e9aaf7 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -6,10 +6,23 @@ on: pull_request: branches: [main] +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: "pages" + cancel-in-progress: false + jobs: build-and-deploy: runs-on: ubuntu-latest - + + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: - name: Checkout code uses: actions/checkout@v4 diff --git a/README.md b/README.md index a46ab50..cef5c94 100644 --- a/README.md +++ b/README.md @@ -21,9 +21,13 @@ This project is automatically deployed to GitHub Pages. Every push to the `main` 1. Push this code to your GitHub repository 2. Go to your repository settings 3. Scroll down to the "Pages" section -4. Under "Source", select "GitHub Actions" +4. Under "Build and deployment", set: + - Source: "GitHub Actions" + - Branch: "main", "/ (root)" 5. The site will be published automatically after the next push to `main` +Note: You must configure GitHub Pages in your repository settings before the first deployment will succeed. + The site will be available at: `https://yourusername.github.io/repository-name` ### Local Development