1
0
mirror of https://github.com/axllent/mailpit.git synced 2025-04-13 11:50:32 +02:00

Update build workflow

This commit is contained in:
Ralph Slooten 2022-10-15 09:31:29 +13:00
parent 4b95c6bda0
commit 5d396b9f25

View File

@ -23,6 +23,7 @@ jobs:
steps:
- uses: actions/checkout@v3
# @TODO: replace deprecated action with ${{ github.ref_name }}
- name: Get tag
id: tag
uses: dawidd6/action-get-tag@v1
@ -32,6 +33,7 @@ jobs:
with:
node-version: 16
cache: 'npm'
- run: echo "Building assets for ${{ github.ref_name }}"
- run: npm install
- run: npm run package
@ -46,4 +48,5 @@ jobs:
asset_name: mailpit-${{ matrix.goos }}-${{ matrix.goarch }}
extra_files: LICENSE README.md
md5sum: false
overwrite: true
ldflags: -w -X "github.com/axllent/mailpit/config.Version=${{ steps.tag.outputs.tag }}"