diff --git a/.github/workflows/deploy-pages.yml b/.github/workflows/deploy-pages.yml deleted file mode 100644 index 98e003f..0000000 --- a/.github/workflows/deploy-pages.yml +++ /dev/null @@ -1,39 +0,0 @@ -name: Deploy GitHub Pages - -on: - push: - branches: ["main"] - 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@v4 - - - name: Setup Pages - uses: actions/configure-pages@v4 - with: - enablement: true - - - name: Upload artifact - uses: actions/upload-pages-artifact@v3 - with: - path: . - - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v4 diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..c59ce0a --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,40 @@ +name: Deploy to GitHub Pages + +on: + push: + branches: ["main"] + pull_request: + branches: ["main"] + types: [opened, synchronize, reopened] + workflow_dispatch: + +permissions: + contents: write + pages: write + id-token: write + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Build + run: | + mkdir -p dist + cp -r * dist/ || true + cp -r .github dist/ || true + + - name: Deploy to GitHub Pages (main) + if: github.ref == 'refs/heads/main' + uses: actions/deploy-pages@v4 + + - name: Deploy PR Preview + if: github.ref != 'refs/heads/main' + uses: rossjrw/pr-preview-action@v1.8.1 + with: + source-dir: ./dist + preview-branch: gh-pages + umbrella-dir: preview + pr-number: ${{ github.event.pull_request.number }} diff --git a/tools.json b/tools.json index fe51488..3129c2e 100644 --- a/tools.json +++ b/tools.json @@ -1 +1,12 @@ -[] +[ + { + "id": "fedi-username-normalizer", + "title": "Fedi Username Normalizer", + "description": "Convert Fediverse profile URLs to standard username@domain format.", + "icon": "🔄", + "category": "text", + "tags": ["fediverse", "mastodon", "username", "normalize", "social"], + "path": "tools/fedi-username-normalizer/index.html", + "enabled": true + } +] diff --git a/tools/fedi-username-normalizer/index.html b/tools/fedi-username-normalizer/index.html new file mode 100644 index 0000000..33c1374 --- /dev/null +++ b/tools/fedi-username-normalizer/index.html @@ -0,0 +1,165 @@ + + +
+ + ++ Convert Fediverse profile URLs into standard username@domain format. + Paste your URLs below and see the normalized usernames appear in real-time. +
+ +https://sigmoid.social/@acedyyrug → @acedyyrug@sigmoid.socialhttps://en.osm.town/@thibaultmol → @thibaultmol@en.osm.townhttps://mastodon.social/@user → @user@mastodon.social