Skip to content

Commit

Permalink
Add action to render scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
HEnquist committed Dec 30, 2023
1 parent 12567b1 commit 42e9032
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 42e9032

Please sign in to comment.