Skip to content

Update deploy-docs.yml #30

Update deploy-docs.yml

Update deploy-docs.yml #30

Workflow file for this run

name: Deploy Docs 🚀
on:
push:
branches:
- 'main'
permissions: write-all
jobs:
Deploy:
runs-on: macos-12
permissions:
contents: write
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set current marketing version
run: echo "::set-output name=MARKETING_VERSION::$(cat version.txt)"
id: get-current-marketing-version
- name: Deploy AdyenApplePayProvisioning to current version
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./AdyenApplePayProvisioning/Documentation/html
destination_dir: ./${{ steps.get-current-marketing-version.outputs.MARKETING_VERSION }}/AdyenApplePayProvisioning
- name: Deploy AdyenApplePayExtensionProvisioning to current version
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./AdyenApplePayExtensionProvisioning/Documentation/html
destination_dir: ./${{ steps.get-current-marketing-version.outputs.MARKETING_VERSION }}/AdyenApplePayExtensionProvisioning
- name: Deploy Full Documentation to current version
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./ApiDocumentation
destination_dir: ./${{ steps.get-current-marketing-version.outputs.MARKETING_VERSION }}/Api