Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
saranagaoka authored Dec 7, 2023
1 parent e825d46 commit 5f3de45
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Git
run: |
git config --global user.name 'github-actions'
- name: Create Tag
id: create_tag
env:
Expand Down Expand Up @@ -52,16 +50,4 @@ jobs:
done
echo "NEW_TAG: $NEW_TAG"
git tag $NEW_TAG || (echo "Failed to create tag" && exit 1)
git push origin $NEW_TAG || (echo "Failed to push tag" && exit 1)
echo "::set-output name=TAG_NAME::$NEW_TAG"
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.create_tag.outputs.TAG_NAME }}
release_name: Release ${{ steps.create_tag.outputs.TAG_NAME }}
draft: false
prerelease: false
git push origin $NEW_TAG || (echo "Failed to push tag" && exit

0 comments on commit 5f3de45

Please sign in to comment.