Skip to content

Commit

Permalink
feat: github actions (#294)
Browse files Browse the repository at this point in the history
  • Loading branch information
mckenziearts authored Sep 7, 2024
1 parent 42df2f4 commit f97ceaa
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 166 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
pull_request:

jobs:
run-tests:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/update-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ on:
- 'packages/admin/docs/**'

env:
DOCUMENTATION_REPOSITORY_NAME: laravelshopper.dev
SCREENSHOT_PATH: public/img/screenshots/${{ github.ref_name }}
DOC_REPOSITORY_NAME: laravelshopper.dev
DOCUMENTATION_PATH: resources/docs/${{ github.ref_name }}

jobs:
docs:
Expand All @@ -27,16 +28,16 @@ jobs:
echo "Cloned laravelshopper.dev repository!"
- name: Create and Copy folders assets
run: |
mkdir -p "./$DOC_REPOSITORY_NAME/$SCREENSHOT_PATH"
mkdir -p "./$DOC_REPOSITORY_NAME/resources/docs"
cp -rf packages/admin/docs/content "./$DOC_REPOSITORY_NAME/resources/docs"
cp -rf packages/admin/docs/screenshots "./$DOC_REPOSITORY_NAME/$SCREENSHOT_PATH"
mkdir -p "./$DOCUMENTATION_REPOSITORY_NAME/$SCREENSHOT_PATH"
mkdir -p "./$DOCUMENTATION_REPOSITORY_NAME/$DOCUMENTATION_PATH"
cp -rf packages/admin/docs/content "./$DOCUMENTATION_REPOSITORY_NAME/$DOCUMENTATION_PATH"
cp -rf packages/admin/docs/screenshots "./$DOCUMENTATION_REPOSITORY_NAME/$SCREENSHOT_PATH"
echo "Copied updated docs to the laravelshopper.dev repository!"
- name: Commit and Push Changes
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
run: |
cd $DOC_REPOSITORY_NAME
cd $DOCUMENTATION_REPOSITORY_NAME
if [ -n "$(git status --porcelain)" ]; then
git add .
git commit -m "docs: update /resources/docs folder with latest changes"
Expand Down
1 change: 0 additions & 1 deletion packages/admin/docs/content/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
- [Roles / Permissions](/docs/{{version}}/roles-permissions)
- [Two Factor Authenticator](/docs/{{version}}/two-factor)
- [Legal](/docs/{{version}}/legal)
- [Media](/docs/{{version}}/media)
- ##### Control Panel
- [Dashboard](/docs/{{version}}/dashboard)
- [Brands](/docs/{{version}}/brands)
Expand Down
158 changes: 0 additions & 158 deletions packages/admin/docs/content/media.md

This file was deleted.

0 comments on commit f97ceaa

Please sign in to comment.