Skip to content

Commit

Permalink
fix: adding tag creation
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslanti committed Aug 5, 2024
1 parent 419dd21 commit 186206b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,22 @@ jobs:
with:
submodules: recursive

- name: Get package tag
run: |
cargo install cargo-get
echo "TAG=v`cargo get package.version`" >> $GITHUB_ENV
echo "tag name $TAG"
- name: Create tag
uses: rickstaa/action-create-tag@v1
with:
tag: "latest"
tag: $TAG
tag_exists_error: true
message: "Latest release"

build-and-upload:
name: Build and upload
needs: create-tag

runs-on: ${{ matrix.os }}

Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
name: Continuous Integration

on: [ push ]

on:
push:
branches-ignore:
- 'main'
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "-Dwarnings"

jobs:
build:
runs-on: ubuntu-latest
if: github.ref != 'refs/heads/main'

steps:
- name: Clone repo
Expand Down

0 comments on commit 186206b

Please sign in to comment.