Skip to content

Commit

Permalink
Update release.yml to include quickgui branch (#35)
Browse files Browse the repository at this point in the history
* Update release.yml

* Update to do the whole task
  • Loading branch information
Lukewh authored Nov 19, 2021
1 parent f0f3136 commit f2271b3
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
types:
- published
jobs:
Build:
Build and release:
runs-on: ubuntu-20.04
steps:
- run: echo "Starting build"
Expand Down Expand Up @@ -47,14 +47,29 @@ jobs:
git config --local user.name "github-actions[bot]"
git add docs
git commit -m "Docs"
- name: Generate index
run: |
cd docs
tree -H '.' -L 3 --noreport --charset utf-8 -o index.html
- name: Publish to pages
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
directory: build
force: true
- name: Copy built files to root
run: |
cp ${{ github.workspace }}/docs/png/*/* ${{ github.workspace }}
cp ${{ github.workspace }}/docs/svg/*/* ${{ github.workspace }}
- name: Delete docs
run: rm -r ${{ github.workspace }}/docs
- name: Add and commit
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add .
git commit -m "Quickgui"
- name: Publish to quickgui
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: quickgui
directory: .
force: true

0 comments on commit f2271b3

Please sign in to comment.