mirror of
https://github.com/EyeTrackVR/EyeTrackVR-Docs.git
synced 2025-11-04 14:49:44 +08:00
ci(ci-semver): enable semantic versioning
This commit is contained in:
parent
e793ed885e
commit
2fe6b3569d
44
.github/workflows/build_release_vitepress.yml
vendored
44
.github/workflows/build_release_vitepress.yml
vendored
@ -3,7 +3,7 @@ on:
|
|||||||
# Allows you to run this workflow manually from the Actions tab
|
# Allows you to run this workflow manually from the Actions tab
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main, master]
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
@ -39,32 +39,32 @@ jobs:
|
|||||||
name: Deploy
|
name: Deploy
|
||||||
needs: [build]
|
needs: [build]
|
||||||
steps:
|
steps:
|
||||||
#- name: Checkout
|
- name: Checkout
|
||||||
# uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
# with:
|
with:
|
||||||
# fetch-depth: 0
|
fetch-depth: 0
|
||||||
#- name: Create Directory
|
- name: Create Directory
|
||||||
# run: mkdir -p dist
|
run: mkdir -p dist
|
||||||
- name: Download artifact
|
- name: Download artifact
|
||||||
uses: actions/download-artifact@v2
|
uses: actions/download-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: production-files
|
name: production-files
|
||||||
path: ./dist
|
path: ./dist
|
||||||
#- name: Setup node
|
- name: Setup node
|
||||||
# uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
# with:
|
with:
|
||||||
# node-version: 18
|
node-version: 18
|
||||||
#- run: npm install -g conventional-changelog-conventionalcommits
|
- run: npm install -g conventional-changelog-conventionalcommits
|
||||||
#- run: npm install -g semantic-release@v19.0.5
|
- run: npm install -g semantic-release@v19.0.5
|
||||||
#- run: npm install -g @semantic-release/exec
|
- run: npm install -g @semantic-release/exec
|
||||||
#- run: npm install -g @semantic-release/git
|
- run: npm install -g @semantic-release/git
|
||||||
#- run: npm install -g @semantic-release/release-notes-generator
|
- run: npm install -g @semantic-release/release-notes-generator
|
||||||
#- run: npm install -g @semantic-release/changelog
|
- run: npm install -g @semantic-release/changelog
|
||||||
#- run: npm install -g @semantic-release/github
|
- run: npm install -g @semantic-release/github
|
||||||
#- name: Release
|
- name: Release
|
||||||
# env:
|
env:
|
||||||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
# run: semantic-release
|
run: semantic-release
|
||||||
- name: Deploy to GitHub Pages
|
- name: Deploy to GitHub Pages
|
||||||
uses: peaceiris/actions-gh-pages@v3.9.2
|
uses: peaceiris/actions-gh-pages@v3.9.2
|
||||||
with:
|
with:
|
||||||
|
|||||||
@ -1,8 +1,7 @@
|
|||||||
{
|
{
|
||||||
"branches": [
|
"branches": [
|
||||||
"main",
|
"main",
|
||||||
"master",
|
"master"
|
||||||
"docs"
|
|
||||||
],
|
],
|
||||||
"plugins": [
|
"plugins": [
|
||||||
[
|
[
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user