From c7fa3e85f601799663ddddad5e2a74877c51b5fd Mon Sep 17 00:00:00 2001 From: Lasdecoeur Date: Mon, 13 Oct 2025 11:02:13 +0400 Subject: [PATCH] Create static.yml --- .github/workflows/static.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/static.yml diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml new file mode 100644 index 0000000..232b81d --- /dev/null +++ b/.github/workflows/static.yml @@ -0,0 +1,36 @@ +name: Deploy static site to Pages + +on: + push: + branches: [ main ] + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: "pages" + cancel-in-progress: true + +jobs: + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + # Si tes fichiers à publier sont à la racine du dépôt, garde "." + # Si tu publies depuis /docs, remplace par "./docs" + - name: Upload static files + uses: actions/upload-pages-artifact@v3 + with: + path: . + + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4