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 3e9012f commit 1eb391f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/release_action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +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"
echo "PRE_RELEASE=true" >> $GITHUB_ENV
else
echo "Commit message does not match the pre-release pattern, exiting..."
echo "::set-output name=matched::false"
echo "PRE_RELEASE=false" >> $GITHUB_ENV
exit 0
fi
- name: Setup python
if: steps.extract_version.outputs.matched == 'true'
if: env.PRE_RELEASE == 'true'
uses: getsentry/[email protected]
with:
python-version: 3.10.7
Expand All @@ -42,14 +42,14 @@ jobs:
venv-dir: ./documentation/.venv

- name: Set up Node.js
if: steps.extract_version.outputs.matched == 'true'
if: env.PRE_RELEASE == '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'
if: env.PRE_RELEASE == 'true'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_KEY }}
run: |
Expand All @@ -58,21 +58,21 @@ jobs:
./etc/publish_new_version.sh ${{ env.version }}
- name: Update docs
if: steps.extract_version.outputs.matched == 'true'
if: env.PRE_RELEASE == 'true'
run: |
npm i
npm run generate
working-directory: ./documentation

- name: Update version in git
if: steps.extract_version.outputs.matched == 'true'
if: env.PRE_RELEASE == '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'
if: env.PRE_RELEASE == 'true'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 1eb391f

Please sign in to comment.