diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8c0f9b8..33f23cd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,9 +1,8 @@ name: Config release on: - push: - tags: - - '*' + release: + types: [published] jobs: build: @@ -23,5 +22,6 @@ jobs: uses: ncipollo/release-action@v1 with: artifacts: "config.tar.gz" + allowUpdates: true token: ${{ secrets.GITHUB_TOKEN }} removeArtifacts: true diff --git a/ci/build_config_package.sh b/ci/build_config_package.sh deleted file mode 100644 index 452f4ee..0000000 --- a/ci/build_config_package.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/env bash - -# This script will config.tar.gz - -set -e - -ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." >/dev/null 2>&1 && pwd)" -CONFIG_DIR="$ROOT_DIR/config" - -cd "$CONFIG_DIR" -tar -czvf "../config.tar.gz" . -cd ..