diff --git a/.github/workflows/deploy-site.yml b/.github/workflows/deploy-site.yml index a9d01573f..830c28b18 100644 --- a/.github/workflows/deploy-site.yml +++ b/.github/workflows/deploy-site.yml @@ -1,5 +1,10 @@ name: Deploy Site -on: push + +on: + push: + tags: + - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 + jobs: build-and-deploy: runs-on: ubuntu-latest diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml deleted file mode 100644 index 29499c4e1..000000000 --- a/.github/workflows/preview.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: 🔂 Surge PR Preview - -on: pull_request - -jobs: - preview: - runs-on: ubuntu-latest - env: - PUBLIC_PATH: '/' - steps: - - uses: actions/checkout@v2 - - uses: afc163/surge-preview@v1 - with: - surge_token: ${{ secrets.SURGE_TOKEN }} - github_token: ${{ secrets.GITHUB_TOKEN }} - build: | - yarn - ./node_modules/.bin/vant-cli build-site - dist: site diff --git a/.github/workflows/release-tag.yml b/.github/workflows/release-tag.yml index 2e0e91cc6..659f15269 100644 --- a/.github/workflows/release-tag.yml +++ b/.github/workflows/release-tag.yml @@ -1,10 +1,10 @@ +name: Create Release + on: push: tags: - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 -name: Create Release - jobs: build: name: Create Release