From fcb4afc170afab26fca1867a0d8b2c082e05eb87 Mon Sep 17 00:00:00 2001 From: unclekingpin Date: Thu, 18 May 2023 13:00:03 -0700 Subject: [PATCH] push on branches --- .github/workflows/build.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b231abab0..d60df4c67 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,9 @@ name: Build -on: push +on: + push: + branches: + - '*' jobs: build: @@ -15,12 +18,15 @@ jobs: - name: Test run: npm test - name: Lint - run: npm run lint + run: npm run lint && echo ${{ github.ref_name }} + pages: + runs-on: ubuntu-latest + steps: - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./build - destination_dir: ${{ github.head_ref }} + destination_dir: ${{ github.ref_name }} enable_jekyll: true allow_empty_commit: true