Fix typo #64
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: aioCloud CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ^1.21 | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Build | |
shell: bash | |
run: | | |
bash build.sh | |
- name: Upload | |
uses: actions/upload-artifact@v2 | |
with: | |
name: release | |
path: release | |
- name: Compress | |
if: startsWith(github.ref, 'refs/tags/') | |
shell: bash | |
run: | | |
zip -9 -r release.zip release | |
- name: Checksum | |
if: startsWith(github.ref, 'refs/tags/') | |
shell: bash | |
run: | | |
echo "CHECKSUM=$(sha256sum release.zip | awk '{print $1}')" >> $GITHUB_ENV | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
prerelease: true | |
draft: false | |
files: | | |
release.zip | |
body: | | |
## 更新日志 | |
* 将会很快更新 | |
## 校验和 | |
| 文件名 | SHA256 | | |
| :-- | :-- | | |
| release.zip | ${{ env.CHECKSUM }} | |