Skip to content

Commit

Permalink
fix release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
GChicha committed May 31, 2021
1 parent 3a3a634 commit 0d1652a
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 40 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/dockerimage.yml

This file was deleted.

45 changes: 45 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Release

on:
push:
tags:
- "*"

jobs:
push_docker_image:
runs-on: ubuntu-latest
name: Build and Publish Docker Image
steps:
- uses: actions/checkout@v2

- name: Build and Publish Tag Docker image
uses: VaultVulp/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
image-name: hs_maringa_bot
extract-git-tag: true

release_binary:
name: Build and release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true

- uses: actions-rs/cargo@v1
with:
command: build
args: --release

- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: target/release/camera_bot
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19 changes: 0 additions & 19 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,22 +62,3 @@ jobs:
with:
command: clippy
args: -- -D warnings

release:
name: Build and release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions-rs/cargo@v1
with:
command: build
args: --release

- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: target/release/camera_bot
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "camera_bot"
version = "0.4.1"
version = "0.4.2"
edition = "2018"
authors = [
"Guilherme Chichanoski <[email protected]>",
Expand Down

0 comments on commit 0d1652a

Please sign in to comment.