From 0a8859126ebd6f2b9cae3eca6f7ceb9e634e3205 Mon Sep 17 00:00:00 2001 From: Tommy Leung Date: Sun, 17 May 2020 13:07:27 -0600 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ab5d3f8..f79ded5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,6 +1,8 @@ name: CI -on: [push] +on: + push: + branches: master jobs: build: @@ -35,13 +37,13 @@ jobs: FOLDER: dist CLEAN: true -# - name: Delete Previous latest Release -# uses: author/action-rollback@stable -# with: -# # Using a tag name -# tag: 'latest' -# env: -# GITHUB_TOKEN: ${{ secrets.GHP_TOKEN }} + - name: Delete Previous latest Release + uses: author/action-rollback@stable + with: + # Using a tag name + tag: 'latest' + env: + GITHUB_TOKEN: ${{ secrets.GHP_TOKEN }} - name: Create Release id: create_release