Generate Publication #10556
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Generate Publication | |
on: | |
schedule: | |
- cron: "*/15 12-23 * * *" | |
jobs: | |
blog: | |
runs-on: self-hosted | |
steps: | |
- name: Generate the publication from a new | |
run: | | |
curl --request POST \ | |
--url 'https://www.tecnobuc.com/api/publication/blog' \ | |
--header 'x-api-key: ${{ secrets.API_KEY }}' | |
# twitter: | |
# runs-on: self-hosted | |
# needs: blog | |
# steps: | |
# - name: Generate a twitter post from an article | |
# run: | | |
# curl --request POST \ | |
# --url 'https://www.tecnobuc.com/api/publication/twitter' \ | |
# --header 'x-api-key: ${{ secrets.API_KEY }}' | |
# linkedin: | |
# runs-on: self-hosted | |
# needs: blog | |
# steps: | |
# - name: Generate a linkedin post from an article | |
# run: | | |
# curl --request POST \ | |
# --url 'https://www.tecnobuc.com/api/publication/linkedin' \ | |
# --header 'x-api-key: ${{ secrets.API_KEY }}' | |
# facebook: | |
# runs-on: self-hosted | |
# needs: blog | |
# steps: | |
# - name: Generate a facebook post from an article | |
# run: | | |
# curl --request POST \ | |
# --url 'https://www.tecnobuc.com/api/publication/facebook' \ | |
# --header 'x-api-key: ${{ secrets.API_KEY }}' | |
# telegram: | |
# runs-on: self-hosted | |
# needs: [blog, twitter, linkedin, facebook] | |
# steps: | |
# - name: Generate a telegram message from an article | |
# run: | | |
# curl --request POST \ | |
# --url 'https://www.tecnobuc.com/api/publication/telegram' \ | |
# --header 'x-api-key: ${{ secrets.API_KEY }}' |