Skip to content

Commit

Permalink
Test Debian packaging without tag
Browse files Browse the repository at this point in the history
  • Loading branch information
macpie committed May 14, 2024
1 parent a3da878 commit 1a45acc
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 1a45acc

Please sign in to comment.