Skip to content

Commit 117c634

Browse files
authored
Merge pull request #34 from bsospace/development
v0.3.0
2 parents f520bb0 + 6bed203 commit 117c634

3 files changed

Lines changed: 16 additions & 19 deletions

File tree

.github/workflows/bump-and-release.yml

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -135,25 +135,21 @@ jobs:
135135
echo "version=$NEW_VERSION" >> $GITHUB_OUTPUT
136136
echo "New version: $NEW_VERSION"
137137
138-
- name: Create or Update Git Tag
139-
run: |
140-
TAG_NAME="v${{ steps.new_version.outputs.version }}"
141-
142-
# Check if tag exists
143-
if git rev-parse "$TAG_NAME" >/dev/null 2>&1; then
144-
echo "Tag $TAG_NAME already exists, deleting and recreating..."
145-
git tag -d "$TAG_NAME"
146-
git push origin :"$TAG_NAME" || true
147-
fi
148-
149-
# Create new tag
150-
git tag -a "$TAG_NAME" -m "Release version ${{ steps.new_version.outputs.version }}"
151-
echo "✅ Created tag: $TAG_NAME"
138+
- name: Authenticate with GitHub App
139+
uses: tibdex/github-app-token@v2.1.0
140+
with:
141+
app_id: ${{ secrets.APP_ID }}
142+
private_key: ${{ secrets.APP_PRIVATE_KEY }}
152143

153144
- name: Push Changes and Tags
154145
run: |
155-
git push origin ${{ github.event.pull_request.base.ref }}
156-
git push origin v${{ steps.new_version.outputs.version }} --force
146+
NEW_VERSION=${{ steps.new_version.outputs.version }}
147+
git config --global user.name "github-actions"
148+
git config --global user.email "github-actions@users.noreply.github.com"
149+
git tag "v$NEW_VERSION"
150+
git push origin "v$NEW_VERSION"
151+
env:
152+
GITHUB_TOKEN: ${{ secrets.PAT }}
157153

158154
- name: Create GitHub Release
159155
uses: softprops/action-gh-release@v2
@@ -176,4 +172,5 @@ jobs:
176172
- Title: ${{ github.event.pull_request.title }}
177173
- Merged by: @${{ github.event.pull_request.merged_by.login }}
178174
- Build: [View Workflow](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
179-
draft: false
175+
draft: false
176+

.github/workflows/deploy-development.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Deploy to Development Environment
33
on:
44
push:
55
tags:
6-
- 'v*'
6+
- 'v*-dev.*'
77

88
jobs:
99
deploy-development:

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
<title>Document</title>
77
</head>
88
<body>
9-
<h1>Test version hotfix v0.2.1</h1>
9+
<h1>Test version v0.6.0-dev.3</h1>
1010
</body>
1111
</html>

0 commit comments

Comments
 (0)