Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: github actions #294

Merged
merged 1 commit into from
Sep 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading