Skip to content

Commit

Permalink
checkout branch
Browse files Browse the repository at this point in the history
  • Loading branch information
hyeokjunejeon committed Dec 8, 2024
1 parent 1a195fd commit c71639f
Showing 1 changed file with 24 additions and 6 deletions.
30 changes: 24 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,25 @@ on:
description: '릴리스 버전 (예: 1.0.0)'
required: true
type: string
branch:
description: '릴리스 브랜치 이름 (예: release-1.0.0)'
required: true
type: string

env:
RELEASE_VERSION: ${{ github.event.inputs.version }}

jobs:
check-out-branch:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Checkout Branch
run: |
git checkout -b ${{ github.event.inputs.branch }}
build-and-release:
needs: check-out-branch
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -30,11 +43,6 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Create Release Tag
run: |
git tag v${{ env.RELEASE_VERSION }}
git push origin v${{ env.RELEASE_VERSION }}
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
Expand Down Expand Up @@ -110,4 +118,14 @@ jobs:
files: |
mlperf-log-parser-*-x86_64.*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

create-tag:
runs-on: ubuntu-latest
needs: build-and-release
steps:
- uses: actions/checkout@v3
- name: Create Release Tag
run: |
git tag v${{ env.RELEASE_VERSION }}
git push origin v${{ env.RELEASE_VERSION }}

0 comments on commit c71639f

Please sign in to comment.