From 58f82c29b9db4231186e7ebf5f906567377d163f Mon Sep 17 00:00:00 2001 From: alterNERDtive Date: Mon, 5 Sep 2022 18:59:54 +0200 Subject: [PATCH] added automated release workflow --- .github/workflows/create-release.yaml | 35 +++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/create-release.yaml diff --git a/.github/workflows/create-release.yaml b/.github/workflows/create-release.yaml new file mode 100644 index 0000000..325d28a --- /dev/null +++ b/.github/workflows/create-release.yaml @@ -0,0 +1,35 @@ +name: Create release on tag push + +on: + push: + tags: + - 'release/*' + +jobs: + build: + name: Pre-compile for Windows + runs-on: windows-latest + permissions: + contents: write + + steps: + - name: Checkout source code + uses: actions/checkout@v3 + + - name: Setup Python + uses: actions/setup-python@v4 + with: + python-version: '3.10' + + - name: Make exe + run: make exe + + - name: Create .zip archive + run: make release + + - name: Draft release + uses: ncipollo/release-action@v1 + with: + artifacts: "elite-scripts.zip" + bodyFile: "CHANGELOG.md" + draft: true