Skip to content

Commit

Permalink
only publish tags
Browse files Browse the repository at this point in the history
  • Loading branch information
callmephilip committed Sep 18, 2024
1 parent af8f682 commit ff353f5
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/publish.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Publish
on:
push:
branches: [main]
name: CI

on: [push, pull_request]

jobs:
deploy:
runs-on: ubuntu-latest
Expand All @@ -17,6 +17,9 @@ jobs:
- name: Test
run: pnpm test
- name: Publish to Visual Studio Marketplace
if: |
github.repository == 'callmephilip/html2ft' &&
startsWith(github.ref, 'refs/tags/')f
uses: HaaLeo/publish-vscode-extension@v1
with:
dependencies: false
Expand Down

0 comments on commit ff353f5

Please sign in to comment.