From 827ab8e9008b56523237a44f17c46e6c4907c8e7 Mon Sep 17 00:00:00 2001 From: n4n5 Date: Tue, 29 Jul 2025 19:12:22 -0600 Subject: [PATCH] fix: add deploy with github actions --- .github/workflows/deploy.yml | 44 ++++++++++++++++++++++++++++++++++++ myip.php | 3 --- 2 files changed, 44 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/deploy.yml delete mode 100644 myip.php diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..30d02e4 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,44 @@ +# Simple workflow for deploying static content to GitHub Pages +name: Deploy static content to Pages + +on: + # Runs on pushes targeting the default branch + push: + branches: ["master"] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +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: + # Single deploy job since we're just deploying + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Pages + uses: actions/configure-pages@v5 + - name: render index.html + run: python3 -m pip install indexage && cd dist && python -m indexage . + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: "." + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 \ No newline at end of file diff --git a/myip.php b/myip.php deleted file mode 100644 index ed9bcf4..0000000 --- a/myip.php +++ /dev/null @@ -1,3 +0,0 @@ -