Skip to content

Commit

Permalink
updated release sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
babymotte committed Jul 16, 2024
1 parent 77b21e1 commit 76f60fc
Showing 1 changed file with 38 additions and 38 deletions.
76 changes: 38 additions & 38 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,23 +43,9 @@ jobs:
WORTERBUCH_LICENSE_FILE: ./test/license
run: cargo test --features=commercial

release:
publish:
needs: test
runs-on: ${{ matrix.image }}

strategy:
fail-fast: false
matrix:
include:
- target: x86_64-unknown-linux-gnu
image: ubuntu-latest
ext: ""
- target: x86_64-pc-windows-msvc
image: windows-latest
ext: ".exe"
- target: x86_64-apple-darwin
image: macos-latest
ext: ""
runs-on: ubuntu-latest

steps:
- name: Checkout
Expand All @@ -81,22 +67,13 @@ jobs:
default: true
override: true

- name: Build
run: cargo build --release

- name: Package Binaries
uses: vimtor/action-zip@v1
with:
files: target/release/worterbuch${{ matrix.ext }} target/release/wbdel${{ matrix.ext }} target/release/wbget${{ matrix.ext }} target/release/wbjson${{ matrix.ext }} target/release/wbls${{ matrix.ext }} target/release/wblssub${{ matrix.ext }} target/release/wbpdel${{ matrix.ext }} target/release/wbpget${{ matrix.ext }} target/release/wbpls${{ matrix.ext }} target/release/wbpsub${{ matrix.ext }} target/release/wbpub${{ matrix.ext }} target/release/wbpubs${{ matrix.ext }} target/release/wbset${{ matrix.ext }} target/release/wbsets${{ matrix.ext }} target/release/wbsub${{ matrix.ext }}
dest: worterbuch-${{ matrix.target }}.zip

- name: Release
uses: softprops/action-gh-release@v1
with:
files: worterbuch-${{ matrix.target }}.zip
- name: Publish to crates.io
run: ./publish.sh
env:
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}

docker:
needs: release
needs: test
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down Expand Up @@ -140,7 +117,7 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}

docker-cli:
needs: release
needs: test
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down Expand Up @@ -184,9 +161,23 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

publish:
needs: release
runs-on: ubuntu-latest
release:
needs: test
runs-on: ${{ matrix.image }}

strategy:
fail-fast: false
matrix:
include:
- target: x86_64-unknown-linux-gnu
image: ubuntu-latest
ext: ""
- target: x86_64-pc-windows-msvc
image: windows-latest
ext: ".exe"
- target: x86_64-apple-darwin
image: macos-latest
ext: ""

steps:
- name: Checkout
Expand All @@ -208,7 +199,16 @@ jobs:
default: true
override: true

- name: Publish to crates.io
run: ./publish.sh
env:
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}
- name: Build
run: cargo build --release

- name: Package Binaries
uses: vimtor/action-zip@v1
with:
files: target/release/worterbuch${{ matrix.ext }} target/release/wbdel${{ matrix.ext }} target/release/wbget${{ matrix.ext }} target/release/wbjson${{ matrix.ext }} target/release/wbls${{ matrix.ext }} target/release/wblssub${{ matrix.ext }} target/release/wbpdel${{ matrix.ext }} target/release/wbpget${{ matrix.ext }} target/release/wbpls${{ matrix.ext }} target/release/wbpsub${{ matrix.ext }} target/release/wbpub${{ matrix.ext }} target/release/wbpubs${{ matrix.ext }} target/release/wbset${{ matrix.ext }} target/release/wbsets${{ matrix.ext }} target/release/wbsub${{ matrix.ext }}
dest: worterbuch-${{ matrix.target }}.zip

- name: Release
uses: softprops/action-gh-release@v1
with:
files: worterbuch-${{ matrix.target }}.zip

0 comments on commit 76f60fc

Please sign in to comment.