Portainer v1.0.2 #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 portainer dir | |
run: | | |
cd /home/runner/work/homeassistant-portainer/homeassistant-portainer/custom_components/portainer | |
zip portainer.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-portainer/homeassistant-portainer/custom_components/portainer/portainer.zip | |
asset_name: portainer.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-portainer/homeassistant-portainer/.github/generate_releasenotes.py --token ${{ secrets.GITHUB_TOKEN }} --release yes --tag ${{ github.ref }} |