From f9299ac15c10dc2da8962f8be82f3c7b682ab58b Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Sun, 15 Oct 2023 08:45:11 +0800 Subject: [PATCH] Try generate more legit 'Release' --- .github/workflows/tagrelease.yml | 25 +++++++++++++++++++++++++ .gitignore | 3 ++- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/tagrelease.yml diff --git a/.github/workflows/tagrelease.yml b/.github/workflows/tagrelease.yml new file mode 100644 index 0000000..4dff674 --- /dev/null +++ b/.github/workflows/tagrelease.yml @@ -0,0 +1,25 @@ +name: Create Release on every tag push in `production` + +on: + push: + branches: + - production + tags: + - '*' + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + ref: production + - uses: actions/setup-node@v3 + with: + node-version: 18 + - run: npm ci && npm run build + - run: cd dist && zip -r ../phanpy-dist.zip . && cd .. + - uses: softprops/action-gh-release@v1 + with: + generate_release_notes: true + files: phanpy-dist.zip diff --git a/.gitignore b/.gitignore index aa759db..a007290 100644 --- a/.gitignore +++ b/.gitignore @@ -25,4 +25,5 @@ dist-ssr # Custom .env.dev -src/data/instances-full.json \ No newline at end of file +src/data/instances-full.json +phanpy-dist.zip \ No newline at end of file