diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml new file mode 100644 index 00000000..5af129c5 --- /dev/null +++ b/.github/workflows/push.yml @@ -0,0 +1,28 @@ +name: Build + +on: + push: + branches: + - "*" + +jobs: + build: + name: Create Build + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Permissions + run: chmod +x build.sh + shell: bash + + - name: Build + run: ./build.sh + shell: bash + + - name: Upload Artifacts + uses: actions/upload-artifact@v4 + with: + name: touchpoint-wp + path: build diff --git a/.github/workflows/releases.yml b/.github/workflows/releases.yml index 5b1c26a6..ac753180 100644 --- a/.github/workflows/releases.yml +++ b/.github/workflows/releases.yml @@ -1,23 +1,26 @@ +name: Create Release + on: push: tags: - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 -name: Create Release - jobs: - build: + release: name: Create Release runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v2 + - name: Permissions run: chmod +x build.sh shell: bash + - name: Build run: ./build.sh shell: bash + - name: Create Release id: create_release uses: actions/create-release@v1 @@ -28,6 +31,7 @@ jobs: release_name: Release ${{ github.ref }} draft: true prerelease: false + - name: Publish Built zip uses: actions/upload-release-asset@v1 env: @@ -36,4 +40,32 @@ jobs: upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: ./touchpoint-wp.zip asset_name: touchpoint-wp.zip - asset_content_type: application/zip \ No newline at end of file + asset_content_type: application/zip + + docs: + name: Update Documentation + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '8.1' + tools: composer + + - name: Install Composer dependencies + run: composer install --no-interaction --prefer-dist + shell: bash + + - name: Configure git identity + run: | + git config --global user.name "github-actions[bot]" + git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" + shell: bash + - name: Generate Docs + run: php ./generateDocs.php + shell: bash \ No newline at end of file diff --git a/.gitignore b/.gitignore index b290ba17..d628dab7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,5 @@ /vendor/ /vendorX/ -composer.lock /assets/images/people /TouchPointWP_ErrorLog.txt /.phpdoc/ @@ -12,14 +11,21 @@ composer.lock /.idea/deployment.xml /.idea/dataSources.xml /.idea/webServers.xml +/.idea/runConfigurations/Local.xml +/.idea/copilotDiffState.xml +/.idea/data_source_mapping.xml +/.idea/copilot* +/.idea/db-forest-config.xml +/.idea/sshConfigs.xml *.min.js node_modules +.phpunit.result.cache + /i18n/*.json /i18n/*.mo - -package-lock.json +/i18n/*.l10n.php /build/ -/touchpoint-wp.zip \ No newline at end of file +/touchpoint-wp.zip diff --git a/.idea/.gitignore b/.idea/.gitignore index 13566b81..a9d7db9c 100644 --- a/.idea/.gitignore +++ b/.idea/.gitignore @@ -6,3 +6,5 @@ # Datasource local storage ignored files /dataSources/ /dataSources.local.xml +# GitHub Copilot persisted chat sessions +/copilot/chatSessions diff --git a/.idea/TouchPoint-WP.iml b/.idea/TouchPoint-WP.iml index 9431eab8..05581e0c 100644 --- a/.idea/TouchPoint-WP.iml +++ b/.idea/TouchPoint-WP.iml @@ -5,6 +5,7 @@ + diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml index 2ca38701..fd81ac46 100644 --- a/.idea/inspectionProfiles/Project_Default.xml +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -3,7 +3,9 @@