Build Release #2
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: Build Release | |
on: [create, workflow_dispatch] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout weelichat | |
uses: actions/checkout@v4 | |
with: | |
repository: shirakumo/pylichat | |
path: weelichat | |
- name: Checkout pylichat | |
uses: actions/checkout@v4 | |
with: | |
repository: shirakumo/pylichat | |
path: pylichat | |
- name: Restore dependencies cache | |
uses: actions/cache@v3 | |
with: | |
path: | | |
.venv | |
key: ${{ runner.os }} | |
- name: Install pinliner | |
if: steps.cache-ql.outputs.cache-hit != 'true' | |
run: | | |
virtualenv .venv | |
source .venv/bin/activate | |
pip install pinliner | |
- name: Compile release | |
run: | | |
source .venv/bin/activate | |
pinliner weelichat pylichat -d lichat -o weelichat.py | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: weelichat.py | |
path: weelichat.py | |
- name: Create release | |
uses: ncipollo/release-action@v1 | |
continue-on-error: true | |
with: | |
allowUpdates: true | |
name: Release ${{ github.ref_name }} | |
artifacts: weelichat.py |