Skip to content

Commit

Permalink
Fix cd if no changes to JS/TS
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Dec 15, 2023
1 parent 184ad57 commit 2217ece
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,15 @@ jobs:
name: dist
path: dist

- uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1

- uses: git-actions/set-user@v1

- run: |
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
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
- uses: softprops/action-gh-release@v1
with:
Expand Down

0 comments on commit 2217ece

Please sign in to comment.