Compare commits
1 Commits
v0.0.6-alp
...
v0.0.6-alp
| Author | SHA1 | Date | |
|---|---|---|---|
| 73eec41573 |
11
.github/workflows/github-actions.yml
vendored
11
.github/workflows/github-actions.yml
vendored
@@ -2,8 +2,8 @@ name: Build and Release Go App
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
# tags:
|
||||||
- 'v*' # Runs only when a new version tag is pushed
|
# - 'v*' # Runs only when a new version tag is pushed
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -23,10 +23,17 @@ jobs:
|
|||||||
go-version: '1.21'
|
go-version: '1.21'
|
||||||
|
|
||||||
- name: Set environment variables
|
- name: Set environment variables
|
||||||
|
if: runner.os != 'Windows'
|
||||||
run: |
|
run: |
|
||||||
echo "GOOS=${{ runner.os == 'Windows' && 'windows' || runner.os == 'macos' && 'darwin' || 'linux' }}" >> $GITHUB_ENV
|
echo "GOOS=${{ runner.os == 'Windows' && 'windows' || runner.os == 'macos' && 'darwin' || 'linux' }}" >> $GITHUB_ENV
|
||||||
echo "GOARCH=${{ matrix.goarch }}" >> $GITHUB_ENV
|
echo "GOARCH=${{ matrix.goarch }}" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Set environment variables
|
||||||
|
if: runner.os == 'Windows'
|
||||||
|
run: |
|
||||||
|
Add-Content -Path $env:GITHUB_ENV "GOOS=${{ runner.os == 'Windows' && 'windows' || runner.os == 'macos' && 'darwin' || 'linux' }}"
|
||||||
|
Add-Content -Path $env:GITHUB_ENV "GOARCH=${{ matrix.goarch }}"
|
||||||
|
|
||||||
- name: Build application
|
- name: Build application
|
||||||
run: |
|
run: |
|
||||||
mkdir -p dist
|
mkdir -p dist
|
||||||
|
|||||||
Reference in New Issue
Block a user