Skip to content

Commit

Permalink
Clean up publish action, and commit generated docs to main
Browse files Browse the repository at this point in the history
  • Loading branch information
dbirks committed Jun 1, 2024
1 parent 6b4e6b9 commit a42acc6
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 50 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Publish features
on:
push:
branches:
- main

jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Publish features and generate documentation
uses: devcontainers/action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
publish-features: "true"
base-path-to-features: "./src"
generate-docs: "true"

- name: Commit changes to the docs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.email github-actions[bot]@users.noreply.github.com
git config --global user.name github-actions[bot]
git add **/README.md
if git status --porcelain | grep --quiet README.md; then
git commit -m "Automated documentation update [skip ci]"
git push
else
echo "No changes to commit"
fi
50 changes: 0 additions & 50 deletions .github/workflows/release.yaml

This file was deleted.

0 comments on commit a42acc6

Please sign in to comment.