diff --git a/.github/filesToCompile b/.github/filesToCompile new file mode 100644 index 0000000..ab7fe65 --- /dev/null +++ b/.github/filesToCompile @@ -0,0 +1,4 @@ +interni/verbali/verbale_1 +interni/verbali/verbale_2 +interni/verbali/verbale_3 +interni/studio_fattibilita \ No newline at end of file diff --git a/.github/workflows/artifacts.yml b/.github/workflows/artifacts.yml new file mode 100644 index 0000000..ab4a735 --- /dev/null +++ b/.github/workflows/artifacts.yml @@ -0,0 +1,48 @@ +name: SWE Docs Artifacts + +on: + push: + branches: + - develop + - testing-ci + paths: + - 'esterni/**' + - 'interni/**' + - 'template/**' + - '.github/**' + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - name: Checkout repo content + uses: actions/checkout@v1 + # with: + # ref: develop + + - name: Search and Compiling Latex Files + uses: Jatus93/Latex-multicompiler@v1.0 + with: + path_to_list: .github/filesToCompile + artifact: true + + - name: FTP Artifacts Online Deploy + uses: SamKirkland/FTP-Deploy-Action@2.0.0 + env: + FTP_SERVER: ${{ secrets.FTP_HOST }} + FTP_USERNAME: ${{ secrets.FTP_USERNAME }} + FTP_PASSWORD: ${{ secrets.FTP_PASSWORD }} + LOCAL_DIR: Documents + ARGS: --transfer-all + + - name: Slack Notification + uses: homoluctus/slatify@v2.0.1 + if: always() + with: + type: ${{ job.status }} + job_name: 'PDF Artifacts updated notification' + channel: '#devops_documentazione' + username: 'Docs Deployment Patrol' + url: ${{ secrets.SLACK_WEBHOOK }} \ No newline at end of file diff --git a/.github/workflows/patrol.yml b/.github/workflows/patrol.yml new file mode 100644 index 0000000..1498057 --- /dev/null +++ b/.github/workflows/patrol.yml @@ -0,0 +1,39 @@ +name: SWE Docs Patrol + +on: + pull_request: + branches: + - develop + - testing-ci + paths: + - 'esterni/**' + - 'interni/**' + - 'template/**' + - '.github/**' + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - name: Checkout repo content + uses: actions/checkout@v1 + + - name: Search and Compiles Latex Files + uses: Jatus93/Latex-multicompiler@v1.0 + with: + path_to_list: .github/filesToCompile + artifact: false + + - name: Slack Notification + uses: homoluctus/slatify@v2.0.1 + if: always() + with: + type: ${{ job.status }} + job_name: 'Verify Docs in Pull Request notification' + mention: 'here' + mention_if: 'failure' + channel: '#devops_documentazione' + username: 'Docs Pull Request Patrol' + url: ${{ secrets.SLACK_WEBHOOK }}