Merge pull request #70 from RIVM-bioinformatics/release-please--branc… #34
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: Build and release | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
bump-and-release: | |
name: Release version | |
runs-on: ubuntu-latest | |
steps: | |
- uses: GoogleCloudPlatform/release-please-action@v3 | |
id: release | |
with: | |
release-type: python | |
package-name: SARS2seq | |
token: ${{ secrets.RELEASE_TOKEN }} | |
update-docs: | |
needs: bump-and-release | |
name: Update docs | |
runs-on: ubuntu-latest | |
if: "contains(github.event.head_commit.message, 'chore(main):')" | |
steps: | |
- name: Checkout main | |
uses: actions/checkout@v2 | |
- name: Copy Changelog | |
uses: canastro/copy-file-action@master | |
with: | |
source: "CHANGELOG.md" | |
target: "docs/changelog.md" | |
- name: Deploy docs | |
uses: mhausenblas/mkdocs-deploy-gh-pages@nomaterial | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
REQUIREMENTS: docs-requirements.txt |