Skip to content

Commit

Permalink
chore: release cli 3.0.0-alpha.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-aksamentov committed Nov 28, 2023
1 parent 4db4347 commit 5796ea4
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 30 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/bioconda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ env:
jobs:

publish-to-bioconda:
if: "!github.event.release.prerelease"

name: "Publish to Bioconda"
runs-on: ubuntu-22.04

Expand Down
61 changes: 36 additions & 25 deletions .github/workflows/cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: cli

on:
push:
branches: ['master', 'staging-cli', 'release-cli']
branches: [ 'master', 'staging-cli', 'release-cli' ]

pull_request:

Expand Down Expand Up @@ -102,8 +102,20 @@ jobs:
cache-v1-cargo-${{ runner.os }}-${{ matrix.arch }}-
cache-v1-cargo-${{ runner.os }}-
- name: "Install deps"
run: |
mkdir -p "${HOME}/bin"
curl -fsSL "https://github.com/TomWright/dasel/releases/download/v1.24.3/dasel_linux_amd64" -o "${HOME}/bin/dasel" && chmod +x "${HOME}/bin/dasel"
- name: "Prepare .env file"
run: |
export PATH="${PATH}:${HOME}/bin"
version=$(dasel select -p toml -s ".package.version" -f "packages_rs/nextclade/Cargo.toml")
if [[ "$version" =~ (rc|beta|alpha) ]]; then
export DATA_FULL_DOMAIN="https://data.master.clades.nextstrain.org/v3"
fi
cp .env.example .env
sed -i -e "s|OSXCROSS_URL=http://example.com/osxcross/osxcross.tar.xz|OSXCROSS_URL=${{ secrets.OSXCROSS_URL }}|g" .env
sed -i -e "s|DATA_FULL_DOMAIN=https://data.master.clades.nextstrain.org/v3|DATA_FULL_DOMAIN=${DATA_FULL_DOMAIN}|g" .env
Expand Down Expand Up @@ -251,28 +263,28 @@ jobs:
chmod +x ./.out/*
JOBS=2 ./tests/run-smoke-tests ./.out/nextclade-x86_64-unknown-linux-gnu
# run-smoke-tests-mac:
# name: "Run smoke tests (mac)"
# needs: [ build-cli ]
# runs-on: macos-latest
#
# steps:
# - name: "Checkout code"
# uses: actions/checkout@v3
# with:
# fetch-depth: 1
# submodules: true
#
# - name: "Download build artifacts"
# uses: actions/download-artifact@v3
# with:
# name: "out"
# path: ".out"
#
# - name: "Run smoke tests (mac)"
# run: |
# chmod +x ./.out/*
# ./tests/run-smoke-tests ./.out/nextclade-x86_64-apple-darwin
# run-smoke-tests-mac:
# name: "Run smoke tests (mac)"
# needs: [ build-cli ]
# runs-on: macos-latest
#
# steps:
# - name: "Checkout code"
# uses: actions/checkout@v3
# with:
# fetch-depth: 1
# submodules: true
#
# - name: "Download build artifacts"
# uses: actions/download-artifact@v3
# with:
# name: "out"
# path: ".out"
#
# - name: "Run smoke tests (mac)"
# run: |
# chmod +x ./.out/*
# ./tests/run-smoke-tests ./.out/nextclade-x86_64-apple-darwin


run-linux-distros-test:
Expand Down Expand Up @@ -384,8 +396,7 @@ jobs:
- name: "Install deploy dependencies"
run: |
mkdir -p "${HOME}/bin"
curl -fsSL "https://github.com/TomWright/dasel/releases/download/v1.24.3/dasel_linux_amd64" -o "${HOME}/bin/dasel"
chmod +x "${HOME}/bin/dasel"
curl -fsSL "https://github.com/TomWright/dasel/releases/download/v1.24.3/dasel_linux_amd64" -o "${HOME}/bin/dasel" && chmod +x "${HOME}/bin/dasel"
- name: "Login to Docker Hub"
uses: docker/login-action@v2
Expand Down
4 changes: 1 addition & 3 deletions docker/docker-prod-scratch.dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
FROM scratch

COPY .out/nextclade-x86_64-unknown-linux-musl /nextclade

RUN set -eux \
&& ln -s /usr/bin/nextclade /usr/bin/nextalign
COPY .out/nextclade-x86_64-unknown-linux-musl /nextalign
4 changes: 2 additions & 2 deletions scripts/publish_github
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ prerelease_flag=${release_type:+--prerelease}
(
if [ -z "$release_type" ]; then
./scripts/extract-release-notes.py CHANGELOG.md
cat docs/assets/release-instructions.md
else
cat docs/assets/prerelease-warning.md
echo "For changes compared to the previous final release version, please refer to \"Unreleased\" section in [CHANGELOG.md](https://github.com/nextstrain/nextclade/blob/${git_sha}/CHANGELOG.md)"
fi
git cliff --current
cat docs/assets/release-instructions.md
) |
gh release create \
"${version}" \
Expand Down

0 comments on commit 5796ea4

Please sign in to comment.