From 322e3de17ee8b6a8940d3a9c86884fb65fb21ce4 Mon Sep 17 00:00:00 2001 From: Kebin Liu Date: Fri, 6 Jan 2023 10:21:44 +0800 Subject: [PATCH] Add release workflows --- .github/workflows/release.yml | 42 +++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..a52fcc61 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,42 @@ +name: CI + +on: + push: + tags: + - '*' + +jobs: + build: + + runs-on: macos-latest + + steps: + + - name: Checkout + uses: actions/checkout@v3 + with: + submodules: recursive + fetch-depth: 0 + + - name: Build + run: | + brew install automake + make VERSION="${GITHUB_REF_NAME}" release + make release-dmg + shasum -a 256 build/Release/ShadowsocksX-NG.dmg > build/Release/ShadowsocksX-NG.dmg.checksum + + - name: Upload artifacts + uses: actions/upload-artifact@v3 + with: + name: ShadowsocksX-NG + path: | + build/Release/ShadowsocksX-NG.dmg + build/Release/ShadowsocksX-NG.dmg.checksum + + - name: Release + uses: softprops/action-gh-release@v1 + with: + generate_release_notes: true + files: | + build/Release/ShadowsocksX-NG.dmg + build/Release/ShadowsocksX-NG.dmg.checksum