gh page auto custom url

This commit is contained in:
Artur Akmalov
2023-05-23 20:45:37 +05:00
parent c3d9c8c9c7
commit 25636c17ca
3 changed files with 13 additions and 4 deletions

View File

@@ -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
publish_dir: ./build
- name: GitHub Pages custom URL
run: bash github-page-url.sh

7
github-page-url.sh Normal file
View File

@@ -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":"/"}}'

View File

@@ -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 {