Skip to content

Commit 42b6c4d

Browse files
committed
ci: enable semantic release
1 parent fcab952 commit 42b6c4d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/semantic-release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ on:
77

88
jobs:
99
build:
10-
if: false
1110
name: Semantic release
1211
environment: main
1312
runs-on: ubuntu-latest
@@ -20,18 +19,19 @@ jobs:
2019
id: semantic
2120
uses: cycjimmy/semantic-release-action@v4
2221
env:
23-
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
22+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
2423
HACKAGE_TOKEN: ${{ secrets.HACKAGE_TOKEN }}
2524

2625
with:
27-
ci: ${{ env.GITHUB_REF == 'refs/head/main' }}
26+
ci: ${{ github.ref == 'refs/heads/main' }}
2827
extra_plugins: |
2928
semantic-release-mirror-version
3029
semantic-release-hackage
3130
3231
- name: Semantic release output
3332
run: |
34-
echo dry_run: ${{ env.GITHUB_REF != 'refs/head/main' }}
33+
echo ref: ${{ github.ref }}
34+
echo dry_run: ${{ github.ref != 'refs/heads/main' }}
3535
echo published: ${{ steps.semantic.outputs.new_release_published }}
3636
echo last_release: ${{ steps.semantic.outputs.last_release_version }}
3737
echo new_version: ${{ steps.semantic.outputs.new_release_version }}

0 commit comments

Comments
 (0)