Skip to content

Commit

Permalink
Fix deployment workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pierrebeaucamp committed Jul 29, 2024
1 parent 79c413a commit 50a0273
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .mint/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@ tasks:
init:
commit-sha: ${{ init.commit-sha }}
kind: unstable
version: ''
1 change: 0 additions & 1 deletion .mint/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ tasks:

- key: publish-github-release
use: [captain-source, github-cli]
if: ${{ init.kind == 'production' }}
env:
GH_TOKEN: ${{ vaults.default.github-apps.rwx-bot.token }}
run: gh release edit ${{ init.full-version }} --draft=false --latest
Expand Down
7 changes: 4 additions & 3 deletions .mint/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ tasks:
tasks:
- key: extract-version-details
run: |
echo "\${{ init.version }}" | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+$' || (echo "Version number is not formatted as vX.X.X" && false)
echo "\${{ init.version }}" > \$MINT_VALUES/full_version
echo "\${{ init.version }}" | sed -E 's/\.[0-9]+\.[0-9]+$//g' > \$MINT_VALUES/aliased_version
echo "${{ init.version }}" | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+$' || (echo "Version number is not formatted as vX.X.X" && false)
echo "${{ init.version }}" > \$MINT_VALUES/full_version
echo "${{ init.version }}" | sed -E 's/\.[0-9]+\.[0-9]+$//g' > \$MINT_VALUES/aliased_version
EOF
fi
if [[ "${{ init.kind }}" == "unstable" ]]; then
Expand Down Expand Up @@ -114,5 +114,6 @@ tasks:
call: ${{ run.mint-dir }}/publish.yaml
if: ${{ init.kind == 'production' }}
init:
commit-sha: ${{ init.commit-sha }}
full-version: ${{ tasks.extract-version-details.values.full_version }}
aliased-version: ${{ tasks.extract-version-details.values.aliased_version }}

0 comments on commit 50a0273

Please sign in to comment.