v0.0.1-alpha1 #18
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: Build Workflow | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-windows: | |
if: contains(github.event.head_commit.message, 'v*.*.*') | |
runs-on: windows-2019 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.7' | |
architecture: 'x64' | |
- name: Install requirements | |
run: | | |
pip install -r requirements.txt | |
- name: Run PyInstaller | |
run: | | |
pyinstaller --onefile seqsl.py | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: seqsl | |
path: dist/seqsl.exe | |
- name: Create GitHub Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.ref_name }} # Uses the tag that triggered the release | |
release_name: "Release ${{ github.ref_name }}" | |
body: | | |
Automated release for version ${{ github.ref_name }} | |
draft: false | |
prerelease: false | |
- name: Upload Release Asset | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: dist/seqsl.exe # Asegúrate de que el archivo esté en esta ruta | |
asset_name: seqsl.exe | |
asset_content_type: application/octet-stream |