v0.1.11 #12
Workflow file for this run
This file contains hidden or 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: Build and publish academy | |
| on: | |
| release: | |
| types: [published] | |
| workflow_dispatch: | |
| inputs: | |
| orgId: | |
| description: 'Organization ID' | |
| required: true | |
| token: | |
| description: 'Bearer token' | |
| required: true | |
| academy-name: | |
| required: false | |
| default: "Digital Ocean Academy" | |
| type: string | |
| version: | |
| description: 'Module version' | |
| required: false | |
| default: '' | |
| jobs: | |
| build-and-publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout site | |
| uses: actions/checkout@v5 | |
| - name: Setup Hugo Extended | |
| uses: peaceiris/actions-hugo@v2 | |
| with: | |
| hugo-version: '0.147.9' | |
| extended: true | |
| - name: Install dependencies | |
| run: make setup | |
| - name: Run production build test | |
| run: make build | |
| - name: Publish to Cloud Academy | |
| id: academy | |
| uses: layer5io/academy-build@v0.1.6 | |
| with: | |
| orgId: ${{ github.event.inputs.orgId || secrets.ACADEMY_ORG_ID }} | |
| token: ${{ github.event.inputs.token || secrets.PROVIDER_TOKEN }} | |
| academy-name: "Digital Ocean Academy" | |
| version: ${{ github.event.inputs.version != '' && github.event.inputs.version || github.ref_name }} | |
| - name: Show response | |
| run: echo "${{ steps.academy.outputs.response }}" |