Skip to content

Commit

Permalink
Merge pull request #21 from exoego/opt-ci
Browse files Browse the repository at this point in the history
Optimize CI
  • Loading branch information
exoego committed May 11, 2024
2 parents 96a07c6 + f6d0803 commit 252ab5a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ on:
- '*.md'
pull_request:
branches: [main]
paths-ignore:
- '*.md'

permissions:
contents: read # for checkout repository
Expand Down Expand Up @@ -40,15 +38,18 @@ jobs:
echo 'clean'
fi
- name: Analyze esbuild bundle size
if: github.event_name == 'pull_request'
uses: jenseng/dynamic-uses@5175289a9a87978dcfcb9cf512b821d23b2a53eb
with:
uses: exoego/esbuild-bundle-analyzer@${{ github.sha }}
with: '{"metafiles": "tmp/meta.json"}'
- uses: actions/upload-artifact@v4
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
with:
name: dist
path: dist
- uses: actions/upload-artifact@v4
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
with:
name: action.yaml
path: action.yaml

0 comments on commit 252ab5a

Please sign in to comment.