Skip to content

Commit

Permalink
build: adds semantic release for deploy process
Browse files Browse the repository at this point in the history
  • Loading branch information
greenkiwi committed Apr 24, 2023
1 parent 046be71 commit 51332aa
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 22 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/ci.yaml

This file was deleted.

35 changes: 35 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Release
on:
push:
branches:
- main
- v.*
permissions:
contents: write
jobs:
deploy:
name: Release & Deploy to GitHub Pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-python@v4
with:
python-version: 3.x
- uses: actions/cache@v2
with:
key: ${{ github.ref }}
path: .cache
- run: pip install mkdocs-material
- name: Semantic release
id: release
uses: cycjimmy/semantic-release-action@v3
env:
GITHUB_TOKEN: ${{ secrets.OPEN_TURO_GITHUB_TOKEN }}
with:
extra_plugins: |
@semantic-release/changelog
@semantic-release/git
@qiwi/semantic-release-gh-pages-plugin
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18.15.0
14 changes: 14 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"extends": "@open-turo/semantic-release-config",
"release": {
"branch": "main",
"plugins": [
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/git",
"@semantic-release/github",
"@semantic-release/npm",
"@qiwi/semantic-release-gh-pages-plugin"
]
}
}

0 comments on commit 51332aa

Please sign in to comment.