We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 184ad57 commit 2217eceCopy full SHA for 2217ece
1 file changed
.github/workflows/cd.yml
@@ -42,18 +42,15 @@ jobs:
42
name: dist
43
path: dist
44
45
- - uses: aws-actions/configure-aws-credentials@v4
46
- with:
47
- aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
48
- aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
49
- aws-region: us-east-1
50
-
51
- uses: git-actions/set-user@v1
+
52
- run: |
53
- git add dist
54
- git commit -m v${{ github.event.inputs.version }}
55
- git tag v${{ github.event.inputs.version }}
56
- git push origin v${{ github.event.inputs.version }} main
+ if ! git diff --exit-code; then
+ git add dist
+ git commit -m v${{ github.event.inputs.version }}
+ git tag v${{ github.event.inputs.version }}
+ git push origin v${{ github.event.inputs.version }} main
+ fi
57
58
- uses: softprops/action-gh-release@v1
59
with:
0 commit comments