-
-
Notifications
You must be signed in to change notification settings - Fork 374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
proposal: Create Tag on Commit #76
Comments
It sounds interesting. I will consider that option this weekend. (I'm busy now.) |
My suggestion. - name: Prepare deployment
id: prepare_deployment
run: |
TAG_NAME="v$(jq -r '.version' ./package.json)"
echo "::set-output name=tag_name::${TAG_NAME}"
- name: Tagged Deploy
uses: peaceiris/actions-gh-pages@v2
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./public
with:
tagName: deploy-v${{ steps.prepare_deployment.outputs.tag_name }}
Yes. |
Yes, that's a good example of how this might be used. |
Is there a reason you used |
The Lines 11 to 14 in 37729f1
|
Ah. Historical reasons make sense. FYI, they implemented |
Go to #78 |
* feat: Add tagName and tagMessage options * feat: Add print_info for tag options * feat: Add tagOverwrite option * docs: Add new section about Git tag options Close #76
Is your feature request related to a problem? Please describe.
I'd like to tag specific versions of my
gh-pages
branch programmatically (in my case, based onpackage.json
version)Describe the solution you'd like
I'd like an option to add a tag with a specified name on commit.
Describe alternatives you've considered
Manually - PITA.
Additional context
I'm thinking I'd like to be able to use this like so:
Where expression might load some values from other steps or combine readily available job information.
Other options for forcing the overwrite of an existing tag or not might make sense too.
The text was updated successfully, but these errors were encountered: