Skip to content

Commit

Permalink
ddd
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Diatlov committed Nov 4, 2024
1 parent 8b67f14 commit 416331e
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions .github/workflows/release-rs.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
name: Release (Rust)

on:
# release:
# types: [published]
push:
tags:
- 'rs/v*'
push:
tags:
- 'rs/v*'

jobs:
j1:
release:
name: Release
runs-on: ubuntu-latest
defaults:
run:
Expand All @@ -18,8 +17,19 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Extract Release Version
id: extract_release_version
run: |
RELEASE_TAG=${GITHUB_REF#refs/tags/}
RELEASE_VERSION=${RELEASE_TAG#rs/v}
if [[ ! $RELEASE_VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "'$VERSION' is not a valid semver version"
exit 1
fi
echo "Release Version: $RELEASE_VERSION"
echo "::set-output name=release_version::$RELEASE_VERSION"
- name: Say Hi
run: |
echo "Hello, World!"
RELEASE_TAG=${GITHUB_REF#refs/tags/}
echo "RELEASE_TAG: $RELEASE_TAG"
echo "We are about to release: ${{ steps.extract_release_version.outputs.release_version }}"

0 comments on commit 416331e

Please sign in to comment.