diff --git a/.github/workflows/build-on-commit.yml b/.github/workflows/build-on-commit.yml index ae4013a..a1821f8 100644 --- a/.github/workflows/build-on-commit.yml +++ b/.github/workflows/build-on-commit.yml @@ -7,4 +7,7 @@ on: jobs: call-build: - uses: ./.github/workflows/build-site.yml + runs-on: ubuntu-latest + needs: build + steps: + - uses: ./.github/workflows/build-site.yml diff --git a/.github/workflows/build-site.yml b/.github/workflows/build-site.yml index bfb2bc2..f2dcf20 100644 --- a/.github/workflows/build-site.yml +++ b/.github/workflows/build-site.yml @@ -31,9 +31,3 @@ jobs: - name: Delete dist gitignore run: sudo rm -f ./public/dist/.gitignore - - - name: Publish site as artifact - uses: actions/upload-artifact@v2 - with: - name: website - path: ./public \ No newline at end of file diff --git a/.github/workflows/deploy-master.yml b/.github/workflows/deploy-master.yml index 430465c..77ea435 100644 --- a/.github/workflows/deploy-master.yml +++ b/.github/workflows/deploy-master.yml @@ -8,7 +8,6 @@ jobs: deploy: runs-on: ubuntu-latest needs: build - if: github.ref == 'refs/heads/master' steps: - name: Build Site uses: ./.github/workflows/common/build-site.yml