From 9e31d5ef0488bbc398064e9852229fa48e5b43dd Mon Sep 17 00:00:00 2001 From: Jack Yu Date: Thu, 19 Dec 2024 09:44:12 +0800 Subject: [PATCH] feat: use GHA to deploy pages Signed-off-by: Jack Yu --- .github/workflows/release.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7da89daf..4e4f9738 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,14 +35,12 @@ jobs: run: | echo "🍻" > release.txt - name: Release - uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - prerelease: true - body_path: release.txt - files: ${{ steps.info.outputs.artifacts_dir }}/* + GH_TOKEN: ${{ github.token }} + run: | + gh release create ${{ github.ref_name }} --draft --notes "Draft release for ${{ github.ref_name }}" + gh release upload ${{ github.ref_name }} ${{ steps.info.outputs.artifacts_dir }}/* publish-gcp: name: Publish artifacts to GCP