GitHub Releases requires a tag
See original GitHub issueI keep getting this error that my git tag has not been set, tried multiple ways to do that from the command line and from bash inside of the action. Could not get promising results hence this issue.
Here is my main.yaml
name: Fast Builds
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- uses: subosito/flutter-action@v1
with:
channel: 'stable'
- run: flutter doctor
- run: flutter pub get
- run: flutter build apk
- name: Display the path
run: |
echo ${PATH}
git tag 0.0.1
echo "wow"
shell: bash
# -name: Debug Info
# shell: bash
# run: |
# GITHUB_TAG = "0.0.1"
# git tag ${GITHUB_TAG}
# echo "Release Tag : ${GITHUB_TAG}"
- name: Release To Git
uses: softprops/action-gh-release@v1
# if: startsWith(github.ref, 'refs/tags/')
with:
body: "A new release"
files: build/app/outputs/apk/release/app-release.apk
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Issue Analytics
- State:
- Created 4 years ago
- Reactions:23
- Comments:23 (1 by maintainers)
Top Results From Across the Web
What are GitHub Releases and How to create a ... - Tools QA
To view, open the tags list in GitHub (Refer Tags In GitHub). Moreover, the option to create a release will be available to...
Read more >Use GitHub Actions to create a tag but not a release
Another option is to use GitHub Script. This creates a lightweight tag called <tagname> (replace this with the name of your tag):
Read more >GitHub Releases Uploading - Travis CI Docs
Deploying only on tagged builds · Regular releases · Draft releases with draft: true · Setting the tag at deployment time · Overwrite...
Read more >GitHubRelease@1 - GitHub Release v1 task - Microsoft Learn
#changeLogCompareToReleaseTag: # string. Required when changeLogCompareToRelease = lastNonDraftReleaseByTag. Release Tag. changeLogType: 'commitBased' # ' ...
Read more >GitHub—tags and releases | PracticalSeries: Brackets-Git and ...
If we added a release note it would become an annotated tag. A release on the other hand is a GitHub object, it...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
In fact, as @softprops said, you need a tag to create a release.
Regarding what @Septias said, it still doesn’t work after adding the tag, I think it may be that the tag is not pushed to github, for more discussion on this see: Push git commits & tags simultaneously
This issue is basically related to
tag_name
, and here are a few ways to solve the problem.The following example specifies a tag named “test”:
Specifying a tag for each commit is annoying. As in the example given by @roslovets, you can use version number control for the tag.
Another example is to specify a tag name for each nightly build version:
I use ncipollo/release-action to create release just after tagging in the same workflow. Example