Update deploy-docs.yml #30
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: 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 |