Skip to content

Commit

Permalink
updated gh workflow to build docs from main
Browse files Browse the repository at this point in the history
  • Loading branch information
xadhatter authored May 30, 2023
1 parent f7278fb commit 5b11e35
Showing 1 changed file with 32 additions and 20 deletions.
52 changes: 32 additions & 20 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,39 @@ jobs:
echo "components=$(ls ./components/ | jq -R -s -c 'split("\n")[:-1]')" >> $GITHUB_OUTPUT
cat $GITHUB_OUTPUT
publish-docs:
name: Publish docs
runs-on: ubuntu-22.04
if: github.ref == 'refs/heads/main'

permissions:
contents: write
pages: write
id-token: write

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
version: "3.x"
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Generate docs
run: pip install pipenv && make docs

- name: Upload docs
uses: actions/upload-pages-artifact@v1
with:
path: site/

- name: Publish docs
uses: actions/deploy-pages@v2

publish-component:
name: Publish
name: Publish components
runs-on: ubuntu-22.04
needs: setup
strategy:
Expand Down Expand Up @@ -71,29 +102,10 @@ jobs:

permissions:
contents: write
pages: write
id-token: write

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
version: "3.x"
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Generate docs
run: pip install pipenv && make docs

- name: Upload docs
uses: actions/upload-pages-artifact@v1
with:
path: site/

- name: Publish docs
uses: actions/deploy-pages@v2

- name: Create release
uses: softprops/action-gh-release@v1

0 comments on commit 5b11e35

Please sign in to comment.