Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
de854fb5
Unverified
Commit
de854fb5
authored
Jul 28, 2024
by
Yineng Zhang
Committed by
GitHub
Jul 28, 2024
Browse files
feat: add fake tag (#770)
parent
f64b2a9b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
0 deletions
+35
-0
.github/workflows/fake-tag.yml
.github/workflows/fake-tag.yml
+35
-0
No files found.
.github/workflows/fake-tag.yml
0 → 100644
View file @
de854fb5
name
:
fake tag
on
:
push
:
branches
:
-
main
paths
:
-
"
python/sglang/version.py"
workflow_dispatch
:
permissions
:
contents
:
write
jobs
:
publish
:
if
:
github.repository == 'sgl-project/sglang'
runs-on
:
ubuntu-latest
environment
:
'
prod'
steps
:
-
name
:
Checkout repository
uses
:
actions/checkout@v3
-
name
:
Get version
id
:
get_version
run
:
|
version=$(cat python/sglang/version.py | cut -d'"' -f2)
echo "TAG=v$version" >> $GITHUB_OUTPUT
-
name
:
Create and push fake tag
env
:
GITHUB_TOKEN
:
${{ secrets.REPO_TOKEN }}
run
:
|
git config user.name zhyncs
git config user.email me@zhyncs.com
git checkout -b ${{ steps.get_version.outputs.TAG }}
git push --set-upstream origin ${{ steps.get_version.outputs.TAG }}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment