Skip to content

Commit

Permalink
update create gh pages workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabien Peter committed Jan 12, 2024
1 parent 69cac1a commit c9a52ba
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/create-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,28 @@ name: create gh pages
on:
push:
branches:
- master
- feature/update-changelog-v1.38
jobs:
Create-AND-PUBLISH-GH-PAGES:
runs-on: windows-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4

- name: Check out old gh pages
uses: actions/checkout@v4
with:
path: _gh_pages
ref: gh-pages

- name: build pages
run: libs/GitHubPagesGenerator.exe -i "${{ github.workspace }}" -s "${{ github.workspace }}/Sitemap.json" -c "${{ github.workspace }}" -o _gh_pages -t "JSON API Spec-Version 1.38"

- name: push
- name: push gh pages
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: gh-pages
BRANCH: gh-pages-test
FOLDER: _gh_pages
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MESSAGE: "Updated Github pages"

0 comments on commit c9a52ba

Please sign in to comment.