From ac7314fa18bcc0fd806a535575104c0068b70b20 Mon Sep 17 00:00:00 2001 From: Drew Heavner Date: Thu, 12 Nov 2020 17:56:37 -0500 Subject: [PATCH] Updated workflow to auto move v1 tag on all commits --- .github/workflows/release.yml | 21 +++++++++++++++++++++ .github/workflows/test.yml | 20 -------------------- 2 files changed, 21 insertions(+), 20 deletions(-) create mode 100644 .github/workflows/release.yml delete mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..dd954abf --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,21 @@ +name: "Tag & Deploy Action" + +on: + push: + branches: + - master + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + +# - name: Run Tests +# run: npm run test + + - name: Update v1 Tag + uses: hole19/git-tag-action@master + env: + TAG: v1 + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 9aea3500..00000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: "Test action" -on: - pull_request: - push: - branches: - - master - - 'releases/*' - -jobs: - test: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - - run: npm ci - - run: npm run build - - run: npm test - - uses: ./ - with: - milliseconds: 1000