Skip to content

Commit 1628c66

Browse files
committed
💚 Manual tag creation, because easier
1 parent abf43c8 commit 1628c66

File tree

1 file changed

+2
-20
lines changed

1 file changed

+2
-20
lines changed

.github/workflows/swift.yml

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ name: Swift
22

33
on:
44
push:
5-
branches: ["main"]
6-
pull_request:
7-
branches: ["main"]
5+
tags:
6+
- "**"
87

98
permissions:
109
contents: write
@@ -16,25 +15,8 @@ jobs:
1615
- uses: actions/checkout@v4
1716
- name: Build
1817
run: swift build -v --disable-sandbox -c release --arch arm64 --arch x86_64
19-
- name: Get current date
20-
id: date
21-
run: echo "date=$(date +'%Y.%m.%d')" >> $GITHUB_ENV
22-
- name: Get run number
23-
id: run_number
24-
run: echo "run_number=${{ github.run_number }}" >> $GITHUB_ENV
25-
- name: Create tag
26-
id: create_tag
27-
run: |
28-
tag_name="${{ env.date }}-${{ env.run_number }}"
29-
echo "Tag name: $tag_name"
30-
echo "tag_name=$tag_name" >> $GITHUB_ENV
31-
git config --global user.name "${{ secrets.GITHUB_ACTOR }}"
32-
git config --global user.email "${{ secrets.GITHUB_ACTOR }}@users.noreply.github.com"
33-
git tag $tag_name
34-
git push origin $tag_name
3518
- name: Release
3619
uses: softprops/action-gh-release@v2
3720
with:
3821
files: .build/apple/Products/Release/swift-changelog-parser
3922
make_latest: "true"
40-
tag_name: ${{ env.tag_name }}

0 commit comments

Comments
 (0)