mirror of
https://github.com/SantaSpeen/santaspeen.ru-blog.git
synced 2026-02-16 02:30:58 +00:00
gh page auto custom url
This commit is contained in:
6
.github/workflows/deploy.yml
vendored
6
.github/workflows/deploy.yml
vendored
@@ -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
7
github-page-url.sh
Normal 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":"/"}}'
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user