Skip to content

Commit

Permalink
ci: use gh pages action
Browse files Browse the repository at this point in the history
  • Loading branch information
duje-begonja-rdx authored Dec 8, 2022
1 parent 90846ed commit fe8349c
Showing 1 changed file with 15 additions and 17 deletions.
32 changes: 15 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,19 +67,18 @@ jobs:
chmod +x gh_pages_build.sh
./gh_pages_build.sh
- name: Push to release branch
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: EndBug/add-and-commit@v9 # You can change this to use a specific version.
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@4.1.1
with:
author_name: github-actions
add: '[docs/]'
new_branch: release
message: "ci: new gh page version available"
folder: "docs/"
target-folder: "docs/"
branch: 'gh-pages'
clean: false
commit-message: "ci: publish documentation for ${{ github.sha }}"

only_github_pages_release:
if: >
( github.event.inputs.publish_public_only == 'yes' && github.event_name == 'workflow_dispatch' )
( github.event.inputs.publish_public_only == 'yes' && github.event_name == 'workflow_dispatch' )
runs-on: ubuntu-latest
name: Only GitHub Pages release

Expand All @@ -105,12 +104,11 @@ jobs:
chmod +x gh_pages_build.sh
./gh_pages_build.sh
- name: Push to release branch
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: EndBug/add-and-commit@v9 # You can change this to use a specific version.
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@4.1.1
with:
author_name: github-actions
add: '[docs/]'
new_branch: release
message: "ci: new gh page version available"
folder: "docs/"
target-folder: "docs/"
branch: 'gh-pages'
clean: false
commit-message: "ci: publish documentation for ${{ github.sha }}"

0 comments on commit fe8349c

Please sign in to comment.