Skip to content

Commit

Permalink
cd: test deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
PhearZero committed Jan 14, 2025
1 parent bf4c2ee commit a121206
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/CD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,20 @@ jobs:
- uses: actions/checkout@v4
- name: Install dependencies
run: go get .
- uses: go-semantic-release/action@v1
name: release
id: semver
with:
dry: true
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Add version to env
run: echo "VERSION=${{ steps.semver.outputs.version }}" >> $GITHUB_ENV
- name: Build
env:
GOOS: ${{matrix.goos}}
GOARCH: ${{matrix.goarch}}
CGO_ENABLED: 0
run: go build -o bin/nodekit-${{matrix.goarch}}-${{matrix.goos}} *.go
run: go build -ldflags "-X main.version=${VERSION}" -o bin/nodekit-${{matrix.goarch}}-${{matrix.goos}} *.go
- uses: actions/upload-artifact@master
with:
name: nodekit-${{matrix.goarch}}-${{matrix.goos}}
Expand Down

0 comments on commit a121206

Please sign in to comment.