Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 13 additions & 7 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,18 @@ on:
permissions:
contents: write

concurrency:
group: ${{ github.workflow }}
cancel-in-progress: false

jobs:
check:
runs-on: ubuntu-latest
outputs:
has_new_commit: ${{ steps.check.outputs.has_new_commit }}
remote_sha: ${{ steps.check.outputs.remote_sha }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
- name: Check for new breseq commit
id: check
env:
Expand All @@ -44,9 +48,9 @@ jobs:
subdir: osx-64
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7

- uses: conda-incubator/setup-miniconda@v3
- uses: conda-incubator/setup-miniconda@v4
with:
miniforge-version: latest
channels: conda-forge,bioconda
Expand All @@ -67,7 +71,7 @@ jobs:
--output-folder ./built-pkgs

- name: Upload built package
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: pkg-${{ matrix.subdir }}
path: built-pkgs/${{ matrix.subdir }}/*.conda
Expand All @@ -78,16 +82,16 @@ jobs:
if: needs.check.outputs.has_new_commit == 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
with:
fetch-depth: 0

- uses: actions/download-artifact@v4
- uses: actions/download-artifact@v7
with:
pattern: pkg-*
path: downloaded-pkgs

- uses: conda-incubator/setup-miniconda@v3
- uses: conda-incubator/setup-miniconda@v4
with:
miniforge-version: latest
channels: conda-forge
Expand Down Expand Up @@ -128,6 +132,8 @@ jobs:

- name: Update state file on main
run: |
git fetch origin main
git reset --hard origin/main
cat > state/last-published-commit.json <<EOF
{
"breseq_commit_sha": "${{ needs.check.outputs.remote_sha }}",
Expand Down
Loading