Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
feat(gh-ci): Release please and update gh actions (DSP-1168) (#1777)
* fix(gh-ci): Separate step to deploy documentation

* feat(gh-ci): Add release-please instead release-drafter

* docs: Update CHANGELOG with gren

* chore(gh): Update PR template

* docs: Update README

* chore: Add latest version
  • Loading branch information
André Kilchenmann committed Jan 8, 2021
1 parent b43fab0 commit 593ffab
Show file tree
Hide file tree
Showing 6 changed files with 799 additions and 102 deletions.
4 changes: 4 additions & 0 deletions .github/pull_request_template.md
@@ -1 +1,5 @@
===REMOVE===
Important! Please follow the new quideline for setting the Pull Request title: https://docs.dasch.swiss/developers/dsp/contribution/#pull-request-guidelines
===REMOVE===

resolves DSP-
45 changes: 0 additions & 45 deletions .github/release-drafter.yml

This file was deleted.

52 changes: 33 additions & 19 deletions .github/workflows/main.yml
Expand Up @@ -297,23 +297,18 @@ jobs:
df -h
docker system df
# Update release notes for "Next release"
update_release_draft:
name: Update next release draft
needs: [
api-unit-tests,
api-e2e-tests,
api-integration-tests,
upgrade-integration-tests,
docs-build-test
]
release-please:
name: Prepare next release
runs-on: ubuntu-latest
# Drafts your next Release notes as Pull Requests are merged into "main"
# Automate releases with Conventional Commit Messages as Pull Requests are merged into "main" branch
if: github.ref == 'refs/heads/main'
steps:
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
- uses: GoogleCloudPlatform/release-please-action@v2
with:
token: ${{ secrets.GH_TOKEN }}
release-type: simple
changelog-types: '[{"type": "feat","section": "Enhancements","hidden": false }, {"type": "fix","section": "Bug Fixes","hidden": false }, {"type": "chore","section": "Maintenance","hidden": false }, {"type": "docs","section": "Documentation","hidden": false }]'


# publish only on release
publish:
Expand Down Expand Up @@ -380,12 +375,31 @@ jobs:
run: |
echo ${{ secrets.DOCKER_HUB_TOKEN }} | docker login -u ${{ secrets.DOCKER_USER }} --password-stdin
make docker-publish
- name: Deploy docs
uses: mhausenblas/mkdocs-deploy-gh-pages@master
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
CUSTOM_DOMAIN: docs.knora.org
- name: Disk Free After
run: |
df -h
docker system df
# deploy documentation only on release
deploy-docs:
name: Deploy docs (on release only)
needs: [
docs-build-test
]
runs-on: ubuntu-latest
if: github.event_name == 'release' && startsWith(github.ref, 'refs/tags')
steps:
- name: Checkout main
uses: actions/checkout@v1
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r docs/requirements.txt
npm install --global typedoc
npm install --global @bazel/bazelisk
sudo apt-get install graphviz
- name: Deploy docs
uses: mhausenblas/mkdocs-deploy-gh-pages@master
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
CUSTOM_DOMAIN: docs.knora.org

0 comments on commit 593ffab

Please sign in to comment.