From 773e0bda83a2b9591c7f4aa45a9dabc8febc8c29 Mon Sep 17 00:00:00 2001 From: qydysky Date: Sat, 2 Dec 2023 23:00:00 +0800 Subject: [PATCH] 1 --- workflows/test.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100755 workflows/test.yml diff --git a/workflows/test.yml b/workflows/test.yml new file mode 100755 index 0000000..ce577b3 --- /dev/null +++ b/workflows/test.yml @@ -0,0 +1,32 @@ +name: test + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + + build: + name: Build + runs-on: ubuntu-latest + steps: + + - name: Set up Go 1.x + uses: actions/setup-go@v4 + with: + go-version: '1.21' + + - name: Check out code into the Go module directory + uses: actions/checkout@v3 + + - name: Set Release Name + run: | + echo "TIME=$(date +"%Y%m%d%H%M%S")" >> $GITHUB_ENV + echo "HASH=$(git rev-parse --short "$GITHUB_SHA")" >> $GITHUB_ENV + + - name: Upload a Release Asset + uses: softprops/action-gh-release@v1 + with: + tag_name: v0.0.${{ env.TIME }} -- 2.39.2