Skip to content

Merge branch 'master' of https://github.com/Jonathunky/U-2-Net #13

Merge branch 'master' of https://github.com/Jonathunky/U-2-Net

Merge branch 'master' of https://github.com/Jonathunky/U-2-Net #13

Workflow file for this run

name: Release
on:
push:
tags:
- "*"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.12"
- name: Create zip file
run: |
zip -r rembg-trainer.zip . -x .github/\* \*.gitignore
- name: Create Release
id: create_release
uses: actions/create-release@v1
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: false
prerelease: false
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This is the URL for uploading assets to the release
asset_path: ./rembg-trainer.zip
asset_name: rembg-trainer.zip
asset_content_type: application/zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}