diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 4064d2f0e..96c06963f 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -15,15 +15,16 @@ env: jobs: on-failure: runs-on: oracles-20.04 - if: ${{ github.event.workflow_run.conclusion == 'failure' }} + if: ${{ github.event.workflow_run.conclusion == 'failure' }} steps: - run: echo 'The triggering workflow failed' on-success: runs-on: oracles-20.04 - concurrency: + concurrency: group: ${{ github.workflow }}-${{ github.ref }}-build-release cancel-in-progress: true - if: ${{ github.event.workflow_run.conclusion == 'success' }} && contains(github.ref, 'refs/tags/') + # if: ${{ github.event.workflow_run.conclusion == 'success' }} && contains(github.ref, 'refs/tags/') + if: ${{ github.event.workflow_run.conclusion == 'success' }} steps: - uses: actions/checkout@v3 - uses: dtolnay/rust-toolchain@stable @@ -43,13 +44,14 @@ jobs: ~/.cargo/git/db/ target/ key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - + - name: Build Release - run: cargo build --all --release + run: cargo build --all --release - name: Debian packaging env: - PACKAGECLOUD_API_KEY: ${{ secrets.PACKAGECLOUD_API_KEY }} + # PACKAGECLOUD_API_KEY: ${{ secrets.PACKAGECLOUD_API_KEY }} + PACKAGECLOUD_API_KEY: XXX run: | chmod +x ./.github/scripts/make_debian.sh ./.github/scripts/make_debian.sh