Update mkdocs.yml (#349) #80
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: | |
push: | |
branches: [ main ] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
env: | |
NODE_VERSION: 12.x | |
TITLE: Cloud-Native Toolkit | |
ANALYTICS_ID: "" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: generate site | |
uses: ./.github/actions/ | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
personal_token: ${{ secrets.TOKEN }} | |
publish_dir: ./public | |
cname: learning-journey.cloudnativetoolkit.dev | |
release: | |
needs: | |
- publish | |
runs-on: ubuntu-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
- uses: actions/checkout@v2 | |
# Drafts your next Release notes as Pull Requests are merged into "main" | |
- name: Create release | |
id: create-release | |
uses: release-drafter/release-drafter@v5 | |
with: | |
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml | |
config-name: release-drafter.yaml | |
publish: true | |
prerelease: false | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |