Skip to content

TrueNAS v1.3

TrueNAS v1.3 #25

Workflow file for this run

name: Release
on:
release:
types: [published]
jobs:
release_zip:
name: Prepare release
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Zip truenas dir
run: |
cd /home/runner/work/homeassistant-truenas/homeassistant-truenas/custom_components/truenas
zip truenas.zip -r ./
- name: Upload zip to release
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: /home/runner/work/homeassistant-truenas/homeassistant-truenas/custom_components/truenas/truenas.zip
asset_name: truenas.zip
tag: ${{ github.ref }}
overwrite: true
releasenotes:
name: Prepare releasenotes
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install requirements
run: |
python3 -m pip install setuptools wheel PyGithub
- name: Update release notes
run: |
python3 /home/runner/work/homeassistant-truenas/homeassistant-truenas/.github/generate_releasenotes.py --token ${{ secrets.GITHUB_TOKEN }} --release yes --tag ${{ github.ref }}