From: qydysky Date: Sat, 2 Dec 2023 15:00:00 +0000 (+0800) Subject: 1 X-Git-Tag: v0.0.20231202150522~3 X-Git-Url: http://127.0.0.1:8081/?a=commitdiff_plain;h=773e0bda83a2b9591c7f4aa45a9dabc8febc8c29;p=front%2F.git 1 --- 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 }}