release: version 10.5.41 🚀 #217
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: Create Release | |
on: | |
push: | |
# Sequence of patterns matched against refs/tags | |
tags: | |
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
# test: | |
# strategy: | |
# fail-fast: true | |
# matrix: | |
# os: [ubuntu-latest] | |
# runs-on: ${{ matrix.os }} | |
# steps: | |
# - uses: actions/checkout@v2 | |
# - name: Install project | |
# run: | | |
# sudo mkdir /opt/hiddify-config | |
# sudo cp -r * /opt/hiddify-config/ | |
# cd /opt/hiddify-config/ | |
# sudo bash install.sh | |
# - name: check working | |
# env: | |
# SQLALCHEMY_DATABASE_URI: sqlite:////opt/hiddify-config/hiddify-panel/database.db | |
# run: | | |
# cd /opt/hiddify-config/ | |
# grep -q -e '-----Finished!-----' log/system/0-install.log | |
# cd hiddify-panel;hiddifypanel all-configs | |
release: | |
# if: startsWith(github.ref, 'refs/tags/v') | |
name: Create Release | |
runs-on: ubuntu-latest | |
# needs: test | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
# by default, it uses a depth of 1 | |
# this fetches all history so that we can read each commit | |
fetch-depth: 0 | |
- name: Set up Python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install gitchangelog pystache | |
sudo apt install -y zip | |
- name: zip | |
run: | | |
zip -r hiddify-manager.zip . -x .**\* | |
cp hiddify-manager.zip hiddify-config.zip | |
cp hiddify-manager.zip hiddify-server.zip | |
- name: Generate Changelog | |
run: .github/release_message.sh > release_message.md | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: "*.zip" | |
body_path: release_message.md | |