chore: better release notes

This commit is contained in:
gVisor bot 2023-03-01 16:55:26 +08:00
parent 830f5a02ef
commit 831b473486

View file

@ -46,11 +46,7 @@ jobs:
target: "linux-mips-softfloat linux-mips-hardfloat linux-mipsle-softfloat linux-mipsle-hardfloat", target: "linux-mips-softfloat linux-mips-hardfloat linux-mipsle-softfloat linux-mipsle-hardfloat",
id: "4", id: "4",
} }
- { - { type: "WithoutCGO", target: "linux-386 linux-riscv64", id: "5" }
type: "WithoutCGO",
target: "linux-386 linux-riscv64",
id: "5",
}
- { - {
type: "WithoutCGO", type: "WithoutCGO",
target: "freebsd-386 freebsd-amd64 freebsd-arm64", target: "freebsd-386 freebsd-amd64 freebsd-arm64",
@ -113,10 +109,11 @@ jobs:
- name: Set ENV - name: Set ENV
run: | run: |
sudo timedatectl set-timezone "Asia/Shanghai"
echo "NAME=clash.meta" >> $GITHUB_ENV echo "NAME=clash.meta" >> $GITHUB_ENV
echo "REPO=${{ github.repository }}" >> $GITHUB_ENV echo "REPO=${{ github.repository }}" >> $GITHUB_ENV
echo "ShortSHA=$(git rev-parse --short ${{ github.sha }})" >> $GITHUB_ENV echo "ShortSHA=$(git rev-parse --short ${{ github.sha }})" >> $GITHUB_ENV
echo "BUILDTIME=$(date -u)" >> $GITHUB_ENV echo "BUILDTIME=$(date)" >> $GITHUB_ENV
echo "BRANCH=$(git rev-parse --abbrev-ref HEAD)" >> $GITHUB_ENV echo "BRANCH=$(git rev-parse --abbrev-ref HEAD)" >> $GITHUB_ENV
shell: bash shell: bash
@ -211,7 +208,7 @@ jobs:
Upload-Prerelease: Upload-Prerelease:
permissions: write-all permissions: write-all
if: ${{ github.ref_type=='branch' }} if: ${{ github.ref_type=='branch' }}
needs: [ Build ] needs: [Build]
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/download-artifact@v3 - uses: actions/download-artifact@v3
@ -231,7 +228,8 @@ jobs:
deleteOnlyFromDrafts: false deleteOnlyFromDrafts: false
- name: Set Env - name: Set Env
run: echo "BUILDTIME=$(date -u)" >> $GITHUB_ENV run: |
echo "BUILDTIME=$(date)" >> $GITHUB_ENV
shell: bash shell: bash
- name: Tag Repo - name: Tag Repo
@ -241,24 +239,32 @@ jobs:
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: |
echo 'Release created at ${{ env.BUILDTIME }}
Synchronize ${{ github.ref_name }} branch code updates, keeping only the latest version
<br>
### release version
`default(not specified in file name)`: compiled with GOAMD64=v3
`cgo`: support lwip tun stack, compiled with GOAMD64=v1
`compatible`: compiled with GOAMD64=v1
Check details between different architectural levels [here](https://github.com/golang/go/wiki/MinimumRequirements#amd64).' > release.txt
- name: Upload Prerelease - name: Upload Prerelease
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
if: ${{ success() }} if: ${{ success() }}
with: with:
tag: ${{ github.ref_name }} tag: ${{ github.ref_name }}
tag_name: Prerelease-${{ github.ref_name }} tag_name: Prerelease-${{ github.ref_name }}
files: bin/* files: |
bin/*
prerelease: true prerelease: true
generate_release_notes: true generate_release_notes: true
body: | body_path: release.txt
Release created at ${{ env.BUILDTIME }}
Synchronize ${{ github.ref_name }} branch code updates, keeping only the latest version
<br>
Upload-Release: Upload-Release:
permissions: write-all permissions: write-all
if: ${{ github.ref_type=='tag' }} if: ${{ github.ref_type=='tag' }}
needs: [ Build ] needs: [Build]
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/download-artifact@v3 - uses: actions/download-artifact@v3
@ -281,7 +287,7 @@ jobs:
Docker: Docker:
permissions: write-all permissions: write-all
needs: [ Build ] needs: [Build]
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout repository - name: Checkout repository