Skip to content

Commit

Permalink
ci: use binstall for faster releases
Browse files Browse the repository at this point in the history
  • Loading branch information
PurpleBooth committed Aug 3, 2024
1 parent d5b1fc7 commit 0d719d4
Showing 1 changed file with 33 additions and 33 deletions.
66 changes: 33 additions & 33 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,47 +14,47 @@ jobs:
uses: PurpleBooth/common-pipelines/.github/workflows/rust-check.yml@main
specdown:
uses: PurpleBooth/common-pipelines/.github/workflows/specdown-check.yml@main


release:
if: github.ref == 'refs/heads/main'
needs:
- commit-checks
- specdown
- lint-markdown
- rust-checks
- specdown
- lint-markdown
- rust-checks
- commit-checks
outputs:
current_version: ${{ steps.current_version.outputs.current_version }}
previous_version: ${{ steps.previous_version.outputs.previous_version }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
with:
fetch-depth: 0
- name: Get tags
run: git fetch --tags origin
- shell: bash
run: cargo install cargo-edit
- shell: bash
run: cargo install --locked cocogitto
- id: previous_version
run: |
cog get-version | tee .version
echo "previous_version=$( cat .version )" >> "$GITHUB_OUTPUT"
rm .version
shell: bash
- name: Semver release
id: release
run: |
git config --global user.name "cog-bot"
git config --global user.email "cog@example.com"
cog bump --auto
- id: current_version
run: |
cog get-version | tee .version
echo "current_version=$( cat .version )" >> "$GITHUB_OUTPUT"
rm .version
shell: bash
- uses: actions/checkout@main
with:
fetch-depth: 0
- uses: cargo-bins/cargo-binstall@main
name: Install cargo binstall
- name: Get tags
run: git fetch --tags origin
- shell: bash
run: cargo binstall --no-confirm cargo-edit
- shell: bash
run: cargo binstall --no-confirm --locked cocogitto
- id: previous_version
run: |
cog get-version | tee .version
echo "previous_version=$( cat .version )" >> "$GITHUB_OUTPUT"
rm .version
shell: bash
- name: Semver release
id: release
run: |
git config --global user.name "cog-bot"
git config --global user.email "cog@example.com"
cog bump --auto
- id: current_version
run: |
cog get-version | tee .version
echo "current_version=$( cat .version )" >> "$GITHUB_OUTPUT"
rm .version
shell: bash

release-binary:
if: needs.release.outputs.current_version != needs.release.outputs.previous_version
Expand Down

0 comments on commit 0d719d4

Please sign in to comment.