mirror of
https://github.com/fabianlindfors/reshape.git
synced 2024-11-22 03:53:38 +03:00
Publish to crates.io with each release
This commit is contained in:
parent
24e1d4b902
commit
0dd8272e9f
19
.github/workflows/release.yaml
vendored
19
.github/workflows/release.yaml
vendored
@ -79,4 +79,21 @@ jobs:
|
||||
# The shell expansion used below will remove everything up to the version number, leaving 0.0.1
|
||||
run: docker build . --tag ${{ secrets.DOCKER_USER }}/reshape:${GITHUB_REF##*/v} --tag ${{ secrets.DOCKER_USER }}/reshape:latest
|
||||
- name: Push Docker image
|
||||
run: docker push --all-tags ${{ secrets.DOCKER_USER }}/reshape
|
||||
run: docker push --all-tags ${{ secrets.DOCKER_USER }}/reshape
|
||||
|
||||
publish-crate:
|
||||
runs-on: ubuntu-latest
|
||||
needs: ["build-binary", "publish-docker"]
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Select Rust toolchain
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
- name: Publish to crates.io
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: publish
|
||||
env:
|
||||
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
|
Loading…
Reference in New Issue
Block a user