From 25636c17ca7b85cddf45c2d798fb569932770c95 Mon Sep 17 00:00:00 2001 From: Artur Akmalov Date: Tue, 23 May 2023 20:45:37 +0500 Subject: [PATCH] gh page auto custom url --- .github/workflows/deploy.yml | 6 ++++-- github-page-url.sh | 7 +++++++ src/components/home/Styles.module.scss | 4 ++-- 3 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 github-page-url.sh diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5c80b4b..3e57841 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -9,7 +9,6 @@ jobs: deploy: environment: name: github-pages - url: ${{ steps.deployment.outputs.page_url }} name: Deploy to GitHub Pages runs-on: ubuntu-latest steps: @@ -29,4 +28,7 @@ jobs: uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./build \ No newline at end of file + publish_dir: ./build + + - name: GitHub Pages custom URL + run: bash github-page-url.sh \ No newline at end of file diff --git a/github-page-url.sh b/github-page-url.sh new file mode 100644 index 0000000..f1985ac --- /dev/null +++ b/github-page-url.sh @@ -0,0 +1,7 @@ +curl -L \ + -X PUT \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: Bearer $GITHUB_TOKEN"\ + -H "X-GitHub-Api-Version: 2022-11-28" \ + https://api.github.com/repos/akmalovaa/akmalov.com/pages \ + -d '{"cname":"test.akmalov.com","source":{"branch":"gh-pages","path":"/"}}' \ No newline at end of file diff --git a/src/components/home/Styles.module.scss b/src/components/home/Styles.module.scss index 4cf9eb5..a0334f3 100644 --- a/src/components/home/Styles.module.scss +++ b/src/components/home/Styles.module.scss @@ -1,6 +1,6 @@ .client-icon { display: block; - max-width: 12rem; + max-width: 10rem; color: white; } @@ -8,7 +8,7 @@ display: block; margin: 0 auto; color: white; - max-width: 12rem; + max-width: 10rem; } .buttons {