mirror of
https://github.com/axllent/mailpit.git
synced 2025-04-15 11:56:44 +02:00
Update build workflow
This commit is contained in:
parent
4b95c6bda0
commit
5d396b9f25
3
.github/workflows/release-build.yml
vendored
3
.github/workflows/release-build.yml
vendored
@ -23,6 +23,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
# @TODO: replace deprecated action with ${{ github.ref_name }}
|
||||||
- name: Get tag
|
- name: Get tag
|
||||||
id: tag
|
id: tag
|
||||||
uses: dawidd6/action-get-tag@v1
|
uses: dawidd6/action-get-tag@v1
|
||||||
@ -32,6 +33,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: 16
|
node-version: 16
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
|
- run: echo "Building assets for ${{ github.ref_name }}"
|
||||||
- run: npm install
|
- run: npm install
|
||||||
- run: npm run package
|
- run: npm run package
|
||||||
|
|
||||||
@ -46,4 +48,5 @@ jobs:
|
|||||||
asset_name: mailpit-${{ matrix.goos }}-${{ matrix.goarch }}
|
asset_name: mailpit-${{ matrix.goos }}-${{ matrix.goarch }}
|
||||||
extra_files: LICENSE README.md
|
extra_files: LICENSE README.md
|
||||||
md5sum: false
|
md5sum: false
|
||||||
|
overwrite: true
|
||||||
ldflags: -w -X "github.com/axllent/mailpit/config.Version=${{ steps.tag.outputs.tag }}"
|
ldflags: -w -X "github.com/axllent/mailpit/config.Version=${{ steps.tag.outputs.tag }}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user