Skip to content
This repository was archived by the owner on Jul 1, 2020. It is now read-only.
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
4 changes: 4 additions & 0 deletions .github/filesToCompile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
interni/verbali/verbale_1
interni/verbali/verbale_2
interni/verbali/verbale_3
interni/studio_fattibilita
48 changes: 48 additions & 0 deletions .github/workflows/artifacts.yml
Original file line number Diff line number Diff line change
@@ -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 }}
39 changes: 39 additions & 0 deletions .github/workflows/patrol.yml
Original file line number Diff line number Diff line change
@@ -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 }}