Skip to content

Commit 0247c76

Browse files
committedMar 6, 2025··
refactor: rename files and update import paths to v3
1 parent 2980d7a commit 0247c76

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+1432
-980
lines changed
 

‎.github/workflows/cli.yml

+1-8
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,12 @@ jobs:
4646
- name: Create Dist Folder
4747
run: mkdir dist
4848

49-
- name: Prepare Version Info
50-
run: |
51-
echo "VERSION=$(git describe --tags)" >> $GITHUB_ENV
52-
echo "COMMIT=$(git rev-parse HEAD)" >> $GITHUB_ENV
53-
echo "BUILD_TIME=$(date --rfc-3339=seconds)" >> $GITHUB_ENV
54-
echo $GITHUB_ENV
55-
5649
- name: Build
5750
run: |
5851
CGO_ENABLED=0
5952
GOOS=${{ matrix.goos }}
6053
GOARCH=${{ matrix.goarch }}
61-
go build -ldflags="-X 'main.Version=${{ env.VERSION }}' -X 'main.Commit=${{ env.COMMIT }}' -X 'main.BuildTime=${{ env.BUILD_TIME }}'" -o dist/gobin-${{ matrix.goos }}-${{ matrix.goarch }}${{ env.file_name }} github.com/topi314/gobin/v2/cli
54+
go build -o dist/gobin-${{ matrix.goos }}-${{ matrix.goarch }}${{ env.file_name }} github.com/topi314/gobin/v3/cli
6255
6356
- name: Upload
6457
uses: actions/upload-artifact@v4

‎.github/workflows/server.yml

-10
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,6 @@ jobs:
4343
username: ${{ github.repository_owner }}
4444
password: ${{ secrets.GITHUB_TOKEN }}
4545

46-
- name: Prepare Version Info
47-
run: |
48-
echo "VERSION=$(git describe --tags)" >> $GITHUB_ENV
49-
echo "COMMIT=$(git rev-parse HEAD)" >> $GITHUB_ENV
50-
echo "BUILD_TIME=$(date --rfc-3339=seconds)" >> $GITHUB_ENV
51-
5246
- name: Build and push
5347
uses: docker/build-push-action@v6
5448
with:
@@ -57,10 +51,6 @@ jobs:
5751
push: true
5852
tags: ${{ steps.meta.outputs.tags }}
5953
labels: ${{ steps.meta.outputs.labels }}
60-
build-args: |
61-
VERSION=${{ env.VERSION }}
62-
COMMIT=${{ env.COMMIT }}
63-
BUILD_TIME=${{ env.BUILD_TIME }}
6454

6555
deploy:
6656
needs:

0 commit comments

Comments
 (0)
Please sign in to comment.