diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index c687442..86befec 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -14,6 +14,7 @@ env: jobs: prepare: runs-on: ubuntu-latest + if: github.ref_name == 'main' || (github.event_name == 'pull_request' && github.event.action == 'labeled' && github.event.label.name == 'DEPLOY') steps: - uses: actions/checkout@v2 - name: Prepare @@ -22,7 +23,7 @@ jobs: echo '${{ toJSON(github) }}' build: runs-on: ubuntu-latest - if: github.ref_name == 'main' || (github.event_name == 'pull_request' && github.event.action == 'labeled' && github.event.label.name == 'DEPLOY') + needs: [prepare] steps: - uses: actions/checkout@v2 - name: Build @@ -31,6 +32,7 @@ jobs: echo '${{ toJSON(github) }}' deploy: runs-on: ubuntu-latest + needs: [build] steps: - uses: actions/checkout@v2 - name: Deploy