Publish #654
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: Publish | |
on: | |
workflow_dispatch: | |
schedule: | |
# Times are UTC | |
# This needs to run AFTER the Astrerisk CreateDocs job has run. | |
- cron: '0 05 * * *' | |
permissions: | |
contents: write | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: 3.x | |
cache: 'pip' | |
- run: pip install -r requirements.txt | |
- name: Get Token needed to push updates | |
id: get_workflow_token | |
uses: peter-murray/workflow-application-token-action@v3 | |
with: | |
application_id: ${{secrets.ASTERISK_ORG_ACCESS_APP_ID}} | |
application_private_key: ${{secrets.ASTERISK_ORG_ACCESS_APP_PRIV_KEY}} | |
organization: asterisk | |
- name: Publish | |
env: | |
GITHUB_TOKEN: ${{steps.get_workflow_token.outputs.token}} | |
GH_TOKEN: ${{steps.get_workflow_token.outputs.token}} | |
run: | | |
gh auth setup-git -h github.com | |
git config --global user.email "asteriskteam@digium.com" | |
git config --global user.name "Asterisk Development Team" | |
cat >Makefile.inc <<EOF | |
${{vars.MAKEFILE_INC}} | |
EOF | |
make | |
make deploy | |