Skip to content

Commit 9328c8d

Browse files
Merge pull request #6 from macadmins/semantic_versioning
Move to semantic versioning
2 parents 3b76609 + 1ab9718 commit 9328c8d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ on: [workflow_dispatch]
33
jobs:
44
build:
55
runs-on: macos-14
6+
env:
7+
VERSION: 1.0.${{github.run_number}}
68
steps:
79
- name: Checkout code
810
uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f # v3.4.0
@@ -26,7 +28,7 @@ jobs:
2628
p12-file-base64: ${{ secrets.PKG_CERTIFICATES_P12_MAOS }}
2729
p12-password: ${{ secrets.PKG_CERTIFICATES_P12_PASSWORD_MAOS }}
2830
- name: Build package
29-
run: ./tools/build_pkg.zsh ${{github.run_number}} ${{ secrets.NOTARY_APP_PASSWORD_MAOS }}
31+
run: ./tools/build_pkg.zsh $VERSION ${{ secrets.NOTARY_APP_PASSWORD_MAOS }}
3032
- name: Generate changelog
3133
id: changelog
3234
uses: metcalfc/changelog-generator@d552ecf3366cf9d6da9fd7dbe425325d3d095aa8 # v4.3.1
@@ -37,8 +39,8 @@ jobs:
3739
id: create_release
3840
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v0.1.15
3941
with:
40-
name: v${{github.run_number}}
41-
tag_name: v${{github.run_number}}
42+
name: v$VERSION
43+
tag_name: v$VERSION
4244
draft: false
4345
prerelease: false
4446
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)