mirror of
https://github.com/SantaSpeen/santaspeen.ru-blog.git
synced 2026-05-19 16:10:16 +00:00
worflow api
This commit is contained in:
@@ -11,6 +11,8 @@ jobs:
|
|||||||
name: github-pages
|
name: github-pages
|
||||||
name: Deploy to GitHub Pages
|
name: Deploy to GitHub Pages
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
issues: read
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
@@ -30,6 +32,11 @@ jobs:
|
|||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
publish_dir: ./build
|
publish_dir: ./build
|
||||||
|
|
||||||
- name: GitHub Pages change URL
|
# - name: GitHub Pages change URL
|
||||||
shell: bash
|
# run: bash github-page-url.sh
|
||||||
run: GITHUB_TOKEN=${{secrets.github_token}} ./github-page-url.sh
|
|
||||||
|
- name: Use API
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
run: |
|
||||||
|
gh api --header 'Accept: application/vnd.github+json' --method PUT /repos/akmalovaa/akmalov.com/pages -f cname="test.akmalov.com" -f source={"branch":"gh-pages","path":"/"}
|
||||||
|
|||||||
Reference in New Issue
Block a user