Skip to content

Commit

Permalink
trying to fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyGura committed Aug 16, 2024
1 parent 4ec314b commit 3e9012f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/release_action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,15 @@ jobs:
if [[ "$commit_message" =~ ^\[pre-release\]\ \[([0-9]+\.[0-9]+\.[0-9]+)\] ]]; then
VERSION="${BASH_REMATCH[1]}"
echo "version=$VERSION" >> $GITHUB_ENV
echo "::set-output name=matched::true"
else
echo "Commit message does not match the pre-release pattern, exiting..."
echo "::set-output name=matched::false"
exit 0
fi
continue-on-error: true
- name: Setup python
if: steps.extract_version.outputs.matched == 'true'
uses: getsentry/[email protected]
with:
python-version: 3.10.7
Expand All @@ -40,12 +42,14 @@ jobs:
venv-dir: ./documentation/.venv

- name: Set up Node.js
if: steps.extract_version.outputs.matched == 'true'
uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'

- name: Publish
if: steps.extract_version.outputs.matched == 'true'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_KEY }}
run: |
Expand All @@ -54,18 +58,21 @@ jobs:
./etc/publish_new_version.sh ${{ env.version }}
- name: Update docs
if: steps.extract_version.outputs.matched == 'true'
run: |
npm i
npm run generate
working-directory: ./documentation

- name: Update version in git
if: steps.extract_version.outputs.matched == 'true'
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: '${{ env.version }} release'
tagging_message: ${{ env.version }}

- name: Deploy to GitHub Pages
if: steps.extract_version.outputs.matched == 'true'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 3e9012f

Please sign in to comment.