mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-10 03:00:54 +00:00
update github action to deploy only major version info
This commit is contained in:
parent
474c1e1f78
commit
126f87becb
6
.github/workflows/publish-docs.yml
vendored
6
.github/workflows/publish-docs.yml
vendored
@ -30,8 +30,8 @@ jobs:
|
||||
id: version
|
||||
run: echo "version=$(node -p "require('./packages/jspsych/package.json').version")" >> "$GITHUB_ENV"
|
||||
|
||||
- name: Remove patch version
|
||||
run: echo "version_major_minor=${{ env.version }}" | awk -F. '{print $1"."$2}' >> "$GITHUB_ENV"
|
||||
- name: Select only major version
|
||||
run: echo "version_major=${{ env.version }}" | awk -F. '{print $1"."x}' >> "$GITHUB_ENV"
|
||||
|
||||
- name: Config git
|
||||
run: |
|
||||
@ -39,7 +39,7 @@ jobs:
|
||||
git config --global user.email docs@jspsych.org
|
||||
|
||||
- name: Deploy docs
|
||||
run: npm run docs:deploy ${{ env.version_major_minor }}
|
||||
run: npm run docs:deploy ${{ env.version_major }}
|
||||
|
||||
- name: Switch to gh-pages branch
|
||||
run: git checkout gh-pages
|
||||
|
Loading…
Reference in New Issue
Block a user