mirror of
https://github.com/yeicor-3d/yet-another-cad-viewer.git
synced 2025-12-19 22:24:17 +01:00
fix CI deployment 7
This commit is contained in:
9
.github/workflows/deploy1.yml
vendored
9
.github/workflows/deploy1.yml
vendored
@@ -17,7 +17,14 @@ jobs:
|
|||||||
with: # Ensure we are not in a detached HEAD state
|
with: # Ensure we are not in a detached HEAD state
|
||||||
ref: "master"
|
ref: "master"
|
||||||
# Check that the tag commit is the latest master commit
|
# Check that the tag commit is the latest master commit
|
||||||
- run: "[[ $(git rev-parse ${{ github.ref }}) == $(git rev-parse master) ]] || exit 1"
|
- run: |
|
||||||
|
git fetch --tags
|
||||||
|
tag_commit=$(git rev-parse ${{ github.ref }})
|
||||||
|
master_commit=$(git rev-parse master)
|
||||||
|
if [ "$tag_commit" != "$master_commit" ]; then
|
||||||
|
echo "The tag commit ($tag_commit) is not the latest master commit ($master_commit)"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
- run: "echo 'CLEAN_VERSION=${{ github.ref }}' | sed 's,refs/tags/v,,g' >> $GITHUB_ENV"
|
- run: "echo 'CLEAN_VERSION=${{ github.ref }}' | sed 's,refs/tags/v,,g' >> $GITHUB_ENV"
|
||||||
# Write the new version to package.json
|
# Write the new version to package.json
|
||||||
- uses: "actions/setup-node@v4"
|
- uses: "actions/setup-node@v4"
|
||||||
|
|||||||
Reference in New Issue
Block a user