diff --git a/hurt/.github/workflows/pages.yaml b/hurt/.github/workflows/pages.yaml new file mode 100644 index 0000000..457d8f7 --- /dev/null +++ b/hurt/.github/workflows/pages.yaml @@ -0,0 +1,38 @@ +name: Deploy static site to Pages + +on: + push: + branches: + - main + paths: + - "page/**" + - ".github/workflows/pages.yaml" + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v5 + - name: Setup Pages + uses: actions/configure-pages@v5 + - name: Upload page/ artifact + uses: actions/upload-pages-artifact@v4 + with: + path: ./page + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 diff --git a/hurt/README.md b/hurt/README.md index 9662dcd..55d7ee0 100644 --- a/hurt/README.md +++ b/hurt/README.md @@ -8,9 +8,10 @@ Small website inspired by the film "Thắp sáng anh, sưởi ấm em" — a lit npm install && npm start ``` -## Related +## Live site -- [hurt-page](https://github.com/tiennm99/hurt-page) — built/hosted static version of this site. +The built static version lives in [`page/`](page/) and is published via GitHub Pages at +. ## License