From 42e9032301c0523c06ba85e9ba42672932bf7382 Mon Sep 17 00:00:00 2001 From: Henrik Date: Sun, 31 Dec 2023 00:03:00 +0100 Subject: [PATCH] Add action to render scripts --- .github/workflows/publish.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..0d54ffb --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,33 @@ +name: Publish + +on: + push: + tags: + - '*' + +jobs: + build_scripts: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.12' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install jinja2 PyYAML + + - name: Render scripts from templates + run: python build_release.py + + - run: zip -r scripts.zip output/* + - name: Upload binaries to release + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: scripts.zip + asset_name: scripts.zip + tag: ${{ github.ref }}